From d254e641c58d8784526882ae48662dfedeb6eb88 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Thu, 14 May 2015 21:04:03 +0200 Subject: [PATCH] CLI: remove wrong attributes from the verbose output These attributes comme from the command line arguments. --- gitlab/cli.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gitlab/cli.py b/gitlab/cli.py index fcbecd854..9104331ef 100755 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -277,12 +277,16 @@ def main(): sys.exit(1) gitlab_id = arg.gitlab - # conflicts with "gitlab" attribute from GitlabObject class - args.pop("gitlab") verbose = arg.verbose action = arg.action what = arg.what + # Remove CLI behavior-related args + args.pop("gitlab") + args.pop("config_file") + args.pop("verbose") + args.pop("what") + if gitlab_id is None: try: gitlab_id = config.get('global', 'default')