diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2023-05-08 11:36:34 +0100 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2023-05-10 10:51:30 +0100 |
| commit | a6f81a736c503e45e1fca9fe49f9f46b9ced7cb8 (patch) | |
| tree | 730284d0b6a1c71b962ac2b63e5cccfe7ed3c15c /openstackclient/api/compute_v2.py | |
| parent | 7d80f9e9626d14ce2ab60e4b69e3ccd070f31e0d (diff) | |
| download | python-openstackclient-a6f81a736c503e45e1fca9fe49f9f46b9ced7cb8.tar.gz | |
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 <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/api/compute_v2.py')
| -rw-r--r-- | openstackclient/api/compute_v2.py | 9 |
1 files changed, 3 insertions, 6 deletions
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 |
