diff options
author | Tony Asleson <tasleson@redhat.com> | 2019-10-09 11:20:18 -0500 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2019-10-30 10:38:40 -0500 |
commit | df2292020bd9298d511e4e2fb6a54fe0cb6e7607 (patch) | |
tree | 8e60131e6a374f1b932d2dbd72554b7abaf4b328 /daemons | |
parent | 5b224d58f7cb72852c0bad87d3a0b4fb9250b132 (diff) | |
download | lvm2-df2292020bd9298d511e4e2fb6a54fe0cb6e7607.tar.gz |
lvmdbusd: Prevent running --nojson with VDO support
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/lvmdbusd/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py index de384ce4c..c128535fc 100644 --- a/daemons/lvmdbusd/main.py +++ b/daemons/lvmdbusd/main.py @@ -131,6 +131,10 @@ def main(): # exists. cfg.vdo_support = supports_vdo() + if cfg.vdo_support and not cfg.args.use_json: + log_error("You cannot specify --nojson when lvm has VDO support") + sys.exit(1) + # List of threads that we start up thread_list = [] |