summaryrefslogtreecommitdiff
path: root/daemons/lvmdbusd/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/lvmdbusd/main.py')
-rw-r--r--daemons/lvmdbusd/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py
index d289c6261..e79c4f5e1 100644
--- a/daemons/lvmdbusd/main.py
+++ b/daemons/lvmdbusd/main.py
@@ -62,7 +62,6 @@ def check_bb_size(value):
"positive integers only ('%s' invalid)" % value)
return v
-
def main():
start = time.time()
# Add simple command line handling
@@ -109,6 +108,7 @@ def main():
# as the user may be specifying a different size. The default one in
# cmdhandler is for when we are running other code with a different main.
cfg.blackbox = LvmFlightRecorder(cfg.args.bb_size)
+ cfg.deprecation = dbus.exceptions.DBusException if cfg.args.strict else DeprecationWarning
if cfg.args.use_lvm_shell and not cfg.args.use_json:
log_error("You cannot specify --lvmshell and --nojson")