summaryrefslogtreecommitdiff
path: root/openstackclient/api/auth_plugin.py
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-07-24 14:39:07 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2019-09-20 14:10:04 +0000
commit100d34c54ecdfedf6fb40a2686e1aae1f54df97e (patch)
tree0ecbb96ba967eb3cbe3cb2bd65cfbca281ed6b3e /openstackclient/api/auth_plugin.py
parent83359fbe4fd7e5850abd45a467bf197c284519b1 (diff)
downloadpython-openstackclient-100d34c54ecdfedf6fb40a2686e1aae1f54df97e.tar.gz
Fix compute service set handling for 2.53+
With compute API microversion 2.53 there is a single PUT /os-services/{service_id} API which takes the service id as a UUID. Since the openstack compute service set command only takes --host and --service (binary) to identify the service, this change checks if 2.53 or greater is being used and if so, looks up the service by host and binary and calls the appropriate methods in novaclient. If the command cannot uniquely identify a compute service with the given host and binary, an error is raised. A future change could add an --id option to be used with 2.53+ to pass the service id (as UUID) directly to avoid the host/binary filtering. Change-Id: I868e0868e8eb17e7e34eef3d2d58dceedd29c2b0 Story: 2005349 Task: 30302 (cherry picked from commit 4bd53dc1090fda86f6ce25b76a079e250c9206d8)
Diffstat (limited to 'openstackclient/api/auth_plugin.py')
0 files changed, 0 insertions, 0 deletions