From a6f81a736c503e45e1fca9fe49f9f46b9ced7cb8 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 8 May 2023 11:36:34 +0100 Subject: Blacken openstackclient.api Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I1df5bc4c35f02147fe5ac5b4073f0e01e7d51c2f Signed-off-by: Stephen Finucane --- openstackclient/api/compute_v2.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'openstackclient/api/compute_v2.py') diff --git a/openstackclient/api/compute_v2.py b/openstackclient/api/compute_v2.py index e30177a2..aa0554b1 100644 --- a/openstackclient/api/compute_v2.py +++ b/openstackclient/api/compute_v2.py @@ -22,6 +22,7 @@ from osc_lib.i18n import _ # TODO(dtroyer): Mingrate this to osc-lib class InvalidValue(Exception): """An argument value is not valid: wrong type, out of range, etc""" + message = "Supplied value is not valid" @@ -291,11 +292,7 @@ class APIv2(api.BaseAPI): return self.list(url)["hosts"] def host_set( - self, - host=None, - status=None, - maintenance_mode=None, - **params + self, host=None, status=None, maintenance_mode=None, **params ): """Modify host properties @@ -576,7 +573,7 @@ class APIv2(api.BaseAPI): value=security_group, ) if security_group is not None: - for (k, v) in params.items(): + for k, v in params.items(): # Only set a value if it is already present if k in security_group: security_group[k] = v -- cgit v1.2.1