summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v3/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/identity/v3/service.py')
-rw-r--r--openstackclient/identity/v3/service.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/openstackclient/identity/v3/service.py b/openstackclient/identity/v3/service.py
index 9dc66962..fde1799c 100644
--- a/openstackclient/identity/v3/service.py
+++ b/openstackclient/identity/v3/service.py
@@ -101,14 +101,19 @@ class DeleteService(command.Command):
identity_client.services.delete(service.id)
except Exception as e:
result += 1
- LOG.error(_("Failed to delete consumer with type, "
- "name or ID '%(service)s': %(e)s"),
- {'service': i, 'e': e})
+ LOG.error(
+ _(
+ "Failed to delete consumer with type, "
+ "name or ID '%(service)s': %(e)s"
+ ),
+ {'service': i, 'e': e},
+ )
if result > 0:
total = len(parsed_args.service)
- msg = (_("%(result)s of %(total)s services failed "
- "to delete.") % {'result': result, 'total': total})
+ msg = _(
+ "%(result)s of %(total)s services failed " "to delete."
+ ) % {'result': result, 'total': total}
raise exceptions.CommandError(msg)
@@ -126,7 +131,6 @@ class ListService(command.Lister):
return parser
def take_action(self, parsed_args):
-
if parsed_args.long:
columns = ('ID', 'Name', 'Type', 'Description', 'Enabled')
else:
@@ -179,8 +183,7 @@ class SetService(command.Command):
def take_action(self, parsed_args):
identity_client = self.app.client_manager.identity
- service = common.find_service(identity_client,
- parsed_args.service)
+ service = common.find_service(identity_client, parsed_args.service)
kwargs = {}
if parsed_args.type:
kwargs['type'] = parsed_args.type
@@ -193,10 +196,7 @@ class SetService(command.Command):
if parsed_args.disable:
kwargs['enabled'] = False
- identity_client.services.update(
- service.id,
- **kwargs
- )
+ identity_client.services.update(service.id, **kwargs)
class ShowService(command.ShowOne):