From fe870ba8ba9afa09bd7339b869dedf07ccf57e92 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Sat, 10 Mar 2018 11:12:31 +0100 Subject: [PATCH] Loglevel arguments not parsed but accessed #646 --- cdist/argparse.py | 2 +- docs/changelog | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cdist/argparse.py b/cdist/argparse.py index fbe2bba6..29620751 100644 --- a/cdist/argparse.py +++ b/cdist/argparse.py @@ -434,7 +434,7 @@ def get_parsers(): def handle_loglevel(args): - if args.quiet: + if hasattr(args, 'quiet') and args.quiet: args.verbose = _verbosity_level_off logging.root.setLevel(_verbosity_level[args.verbose]) diff --git a/docs/changelog b/docs/changelog index abe36509..a86cc6b0 100644 --- a/docs/changelog +++ b/docs/changelog @@ -1,6 +1,9 @@ Changelog --------- +next: + * Core: Fix quiet argument access for bare cdist command (Darko Poljak) + 4.8.1: 2018-03-09 * Type __consul: Add option for directly downloading on target host (Darko Poljak) * Core: Add -4 and -6 params to force IPv4, IPv6 addresses respectively (Darko Poljak)