summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0/service.py
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2013-01-31 13:31:41 -0600
committerJosh Kearney <josh@jk0.org>2013-01-31 13:31:41 -0600
commitb26cb5bf683e7f4f03d9704524a188b76ac5e9b9 (patch)
treef059ddb3b7e15f50d722cf1fbd2b0eaf8242b1a4 /openstackclient/identity/v2_0/service.py
parentaa4f12aec1d13d02df2ecc2710d85ebd90d6dfe7 (diff)
downloadpython-openstackclient-b26cb5bf683e7f4f03d9704524a188b76ac5e9b9.tar.gz
Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.
Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
Diffstat (limited to 'openstackclient/identity/v2_0/service.py')
-rw-r--r--openstackclient/identity/v2_0/service.py25
1 files changed, 9 insertions, 16 deletions
diff --git a/openstackclient/identity/v2_0/service.py b/openstackclient/identity/v2_0/service.py
index 89fe605a..21e32a51 100644
--- a/openstackclient/identity/v2_0/service.py
+++ b/openstackclient/identity/v2_0/service.py
@@ -13,9 +13,7 @@
# under the License.
#
-"""
-Service action implementations
-"""
+"""Service action implementations"""
import logging
@@ -44,13 +42,11 @@ class CreateService(show.ShowOne):
'--type',
metavar='<service-type>',
required=True,
- help='New service type',
- )
+ help='New service type')
parser.add_argument(
'--description',
metavar='<service-description>',
- help='New service description',
- )
+ help='New service description')
return parser
def take_action(self, parsed_args):
@@ -59,8 +55,7 @@ class CreateService(show.ShowOne):
service = identity_client.services.create(
parsed_args.name,
parsed_args.type,
- parsed_args.description,
- )
+ parsed_args.description)
info = {}
info.update(service._info)
@@ -78,8 +73,7 @@ class DeleteService(command.Command):
parser.add_argument(
'service',
metavar='<service-id>',
- help='ID of service to delete',
- )
+ help='ID of service to delete')
return parser
def take_action(self, parsed_args):
@@ -115,8 +109,7 @@ class ListService(lister.Lister):
(utils.get_item_properties(
s, columns,
formatters={},
- ) for s in data),
- )
+ ) for s in data))
class ShowService(show.ShowOne):
@@ -138,8 +131,8 @@ class ShowService(show.ShowOne):
identity_client = self.app.client_manager.identity
try:
# search for the usual ID or name
- service = utils.find_resource(
- identity_client.services, parsed_args.service)
+ service = utils.find_resource(identity_client.services,
+ parsed_args.service)
except exceptions.CommandError:
try:
# search for service type
@@ -149,7 +142,7 @@ class ShowService(show.ShowOne):
# common client exceptions
except identity_exc.NotFound:
msg = "No service with a type, name or ID of '%s' exists." % \
- name_or_id
+ name_or_id
raise exceptions.CommandError(msg)
info = {}