summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorBenoît Knecht <benoit.knecht@fsfe.org>2018-07-17 14:13:39 +0200
committerBenoît Knecht <benoit.knecht@fsfe.org>2018-07-20 10:37:34 +0200
commitfc76db0def66df5bbbc1dc67231b11a531d279fc (patch)
tree71a892d56bf2e0d95aaf6ef341504a72591a1ea7 /openstackclient/compute
parentee35409069b0f77984e912cfc0c90cb9cce52512 (diff)
downloadpython-openstackclient-fc76db0def66df5bbbc1dc67231b11a531d279fc.tar.gz
compute: host: expand kwargs in host_set() call
`host_set()` expects `status` and `maintenance_mode` as keyword arguments, but in `SetHost.take_action()`, it is called without expanding the keyword arguments. So it's called as ``` host_set(host, {'status': 'enable'}) ``` instead of ``` host_set(host, status='enable') ``` Change-Id: If0b37ac60091161a892bfc694fce31a988f66005 Task: 23023
Diffstat (limited to 'openstackclient/compute')
-rw-r--r--openstackclient/compute/v2/host.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/host.py b/openstackclient/compute/v2/host.py
index 9fdfd927..07c92a8c 100644
--- a/openstackclient/compute/v2/host.py
+++ b/openstackclient/compute/v2/host.py
@@ -97,7 +97,7 @@ class SetHost(command.Command):
compute_client.api.host_set(
parsed_args.host,
- kwargs
+ **kwargs
)