diff options
| author | Monty Taylor <mordred@inaugust.com> | 2013-05-14 08:28:48 -0700 |
|---|---|---|
| committer | Monty Taylor <mordred@inaugust.com> | 2013-05-14 08:28:48 -0700 |
| commit | 016a0b301e0ecfea5d84b09e7f1e22a86953c1c1 (patch) | |
| tree | 8e97f2e2c69a1e4ec2f63ee4a417abaec7337f82 /openstackclient/identity/v2_0 | |
| parent | d6c760263b5a7f77bbb35e31f92dd5a9140278ee (diff) | |
| download | python-openstackclient-016a0b301e0ecfea5d84b09e7f1e22a86953c1c1.tar.gz | |
Fix flake8 errors in anticipation of flake8 patch.
Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
Diffstat (limited to 'openstackclient/identity/v2_0')
| -rw-r--r-- | openstackclient/identity/v2_0/service.py | 6 | ||||
| -rw-r--r-- | openstackclient/identity/v2_0/tenant.py | 3 | ||||
| -rw-r--r-- | openstackclient/identity/v2_0/user.py | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/openstackclient/identity/v2_0/service.py b/openstackclient/identity/v2_0/service.py index 21e32a51..51abfc18 100644 --- a/openstackclient/identity/v2_0/service.py +++ b/openstackclient/identity/v2_0/service.py @@ -141,8 +141,10 @@ class ShowService(show.ShowOne): # FIXME(dtroyer): This exception should eventually come from # common client exceptions except identity_exc.NotFound: - msg = "No service with a type, name or ID of '%s' exists." % \ - name_or_id + msg = "No service with exists." + # TODO(mordred): Where does name_or_id come from? + # msg = ("No service with a type, name or ID of '%s' exists." % + # name_or_id) raise exceptions.CommandError(msg) info = {} diff --git a/openstackclient/identity/v2_0/tenant.py b/openstackclient/identity/v2_0/tenant.py index 8a2f738f..00a6a977 100644 --- a/openstackclient/identity/v2_0/tenant.py +++ b/openstackclient/identity/v2_0/tenant.py @@ -16,6 +16,7 @@ """Tenant action implementations""" import logging +import sys from cliff import command from cliff import lister @@ -167,7 +168,7 @@ class SetTenant(command.Command): kwargs['enabled'] = parsed_args.enabled if kwargs == {}: - stdout.write("Tenant not updated, no arguments present") + sys.stdout.write("Tenant not updated, no arguments present") return 0 tenant.update(**kwargs) return diff --git a/openstackclient/identity/v2_0/user.py b/openstackclient/identity/v2_0/user.py index 840cc500..03da6008 100644 --- a/openstackclient/identity/v2_0/user.py +++ b/openstackclient/identity/v2_0/user.py @@ -16,6 +16,7 @@ """Identity v2.0 User action implementations""" import logging +import sys from cliff import command from cliff import lister @@ -196,7 +197,7 @@ class SetUser(command.Command): kwargs['enabled'] = parsed_args.enabled if not len(kwargs): - stdout.write("User not updated, no arguments present") + sys.stdout.write("User not updated, no arguments present") return identity_client.users.update(user.id, **kwargs) return |
