Skip to content

Commit d0297e2

Browse files
committed
Fix pep8
1 parent 6f4ff95 commit d0297e2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

os_capacity/commands/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ListResourcesGroups(Lister):
4444
"""Lists counts of resource providers with similar inventories."""
4545

4646
def take_action(self, parsed_args):
47-
groups = utils.group_providers_by_type_with_capacity(self.app)
47+
groups = utils.group_providers_by_type_with_capacity(self.app)
4848
groups = list(groups) # convert iterator
4949

5050
metrics_to_send = []
@@ -77,8 +77,8 @@ class ListUsagesAll(Lister):
7777
"""List all current resource usages."""
7878

7979
def take_action(self, parsed_args):
80-
allocations = utils.get_allocations_with_server_info(
81-
self.app, get_names=True)
80+
allocations = utils.get_allocations_with_server_info(self.app,
81+
get_names=True)
8282
return (
8383
('Provider Name', 'Server UUID', 'Resources',
8484
'Flavor', 'Days', 'Project', 'User'), allocations)

os_capacity/data/users.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15+
1516
def get_all(identity_client):
1617
response = identity_client.get("/v3/users").json()
1718
raw_users = response['users']

os_capacity/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def get_allocations_with_server_info(app, flat_usage=True, get_names=False):
153153
if get_names:
154154
all_users = users.get_all(app.identity_client)
155155
all_projects = users.get_all_projects(app.identity_client)
156-
all_flavors_list = flavors.get_all(
157-
app.compute_client, include_extra_specs=False)
156+
all_flavors_list = flavors.get_all(app.compute_client,
157+
include_extra_specs=False)
158158
all_flavors = {flavor.id: flavor.name for flavor in all_flavors_list}
159159

160160
updated = []

0 commit comments

Comments
 (0)