From e5a3c403e5982df8ab6a29d84c45aa2f8f3a10dc Mon Sep 17 00:00:00 2001 From: Huanxuan Ao Date: Wed, 13 Jul 2016 19:28:11 +0800 Subject: Make set/unset commands pass normally when nothing specified in identityv3 Change-Id: I554b41969f96b62a2c6d37024caa56b1441d5ed1 Partial-bug: #1588588 --- openstackclient/identity/v3/consumer.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'openstackclient/identity/v3/consumer.py') diff --git a/openstackclient/identity/v3/consumer.py b/openstackclient/identity/v3/consumer.py index a4620bf9..65bf657f 100644 --- a/openstackclient/identity/v3/consumer.py +++ b/openstackclient/identity/v3/consumer.py @@ -15,8 +15,6 @@ """Identity v3 Consumer action implementations""" -import sys - from osc_lib.command import command from osc_lib import utils import six @@ -102,10 +100,6 @@ class SetConsumer(command.Command): if parsed_args.description: kwargs['description'] = parsed_args.description - if not len(kwargs): - sys.stdout.write(_('Consumer not updated, no arguments present\n')) - return - consumer = identity_client.oauth1.consumers.update( consumer.id, **kwargs) -- cgit v1.2.1