Skip to content

Commit f49f0fe

Browse files
author
Brandon Palm
committed
Fixed a bunch of spacing
Nothing too complicated here. I fixed a bunch of spacing issues that I saw in OSC. Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
1 parent 02e5b6f commit f49f0fe

47 files changed

Lines changed: 183 additions & 76 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

openstackclient/common/clientmanager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
class ClientCache(object):
3939
"""Descriptor class for caching created client handles."""
40+
4041
def __init__(self, factory):
4142
self.factory = factory
4243
self._handle = None

openstackclient/common/command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323

2424
class CommandMeta(abc.ABCMeta):
25+
2526
def __new__(mcs, name, bases, cls_dict):
2627
if 'log' not in cls_dict:
2728
cls_dict['log'] = logging.getLogger(

openstackclient/common/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class UnsupportedVersion(Exception):
4141

4242
class ClientException(Exception):
4343
"""The base exception class for all exceptions this library raises."""
44+
4445
def __init__(self, code, message=None, details=None):
4546
self.code = code
4647
self.message = message or self.__class__.message

openstackclient/common/quota.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_compute_volume_quota(self, client, parsed_args):
169169
project = utils.find_resource(
170170
identity_client.projects,
171171
parsed_args.project,
172-
).id
172+
).id
173173

174174
try:
175175
if parsed_args.quota_class:
@@ -193,7 +193,7 @@ def get_network_quota(self, parsed_args):
193193
project = utils.find_resource(
194194
identity_client.projects,
195195
parsed_args.project,
196-
).id
196+
).id
197197
return self.app.client_manager.network.get_quota(project)
198198
else:
199199
return {}

openstackclient/compute/v2/flavor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,20 @@ def get_parser(self, prog_name):
149149
action="store_true",
150150
default=True,
151151
help="List only public flavors (default)",
152-
)
152+
)
153153
public_group.add_argument(
154154
"--private",
155155
dest="public",
156156
action="store_false",
157157
help="List only private flavors",
158-
)
158+
)
159159
public_group.add_argument(
160160
"--all",
161161
dest="all",
162162
action="store_true",
163163
default=False,
164164
help="List all flavors, whether public or private",
165-
)
165+
)
166166
parser.add_argument(
167167
'--long',
168168
action='store_true',

openstackclient/identity/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def make_client(instance):
5353
session=instance.session,
5454
region_name=instance._region_name,
5555
**kwargs
56-
)
56+
)
5757

5858
return client
5959

@@ -72,6 +72,7 @@ def build_option_parser(parser):
7272

7373
class IdentityClientv2(identity_client_v2.Client):
7474
"""Tweak the earlier client class to deal with some changes"""
75+
7576
def __getattr__(self, name):
7677
# Map v3 'projects' back to v2 'tenants'
7778
if name == "projects":

openstackclient/identity/v3/role_assignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def take_action(self, parsed_args):
134134
if 'project' in scope:
135135
if include_names:
136136
prj = '@'.join([scope['project']['name'],
137-
scope['project']['domain']['name']])
137+
scope['project']['domain']['name']])
138138
setattr(assignment, 'project', prj)
139139
else:
140140
setattr(assignment, 'project', scope['project']['id'])

openstackclient/identity/v3/unscoped_saml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
def auth_with_unscoped_saml(func):
2929
"""Check the unscoped federated context"""
30+
3031
def _decorated(self, parsed_args):
3132
auth_plugin_name = self.app.client_manager.auth_plugin_name
3233
if auth_plugin_name in UNSCOPED_AUTH_PLUGINS:

openstackclient/image/v1/image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def take_action(self, parsed_args):
265265
finally:
266266
# Clean up open files - make sure data isn't a string
267267
if ('data' in kwargs and hasattr(kwargs['data'], 'close') and
268-
kwargs['data'] != sys.stdin):
269-
kwargs['data'].close()
268+
kwargs['data'] != sys.stdin):
269+
kwargs['data'].close()
270270

271271
info.update(image._info)
272272
info['properties'] = utils.format_dict(info.get('properties', {}))
@@ -697,8 +697,8 @@ def take_action(self, parsed_args):
697697
finally:
698698
# Clean up open files - make sure data isn't a string
699699
if ('data' in kwargs and hasattr(kwargs['data'], 'close') and
700-
kwargs['data'] != sys.stdin):
701-
kwargs['data'].close()
700+
kwargs['data'] != sys.stdin):
701+
kwargs['data'].close()
702702

703703

704704
class ShowImage(command.ShowOne):

openstackclient/network/v2/port.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def _format_admin_state(state):
2626
'allowed_address_pairs': utils.format_list_of_dicts,
2727
'binding_profile': utils.format_dict,
2828
'binding_vif_details': utils.format_dict,
29-
'dns_assignment': utils.format_list_of_dicts,
29+
'dns_assignment': utils.format_list_of_dicts,
3030
'extra_dhcp_opts': utils.format_list_of_dicts,
31-
'fixed_ips': utils.format_list_of_dicts,
31+
'fixed_ips': utils.format_list_of_dicts,
3232
'security_groups': utils.format_list,
3333
}
3434

0 commit comments

Comments
 (0)