openstack-python-openstackc.../openstackclient
Matt Riedemann 752a2db332 Optimize _prep_server_detail to avoid redundant find_resource
When showing a server or doing a rebuild, we already have
the latest version of the server so _prep_server_detail
getting the server again is an unnecessary performance hit.

ShowServer is pretty obvious here. For RebuildServer, the
compute API actually refreshes the server before returning
it in the response, so the client already gets the latest
when the rebuild call returns.

The only other usage of _prep_server_detail that does require
a refresh is CreateServer since the POST /servers response is
a minimal version of the server object.

This adds a new refresh kwarg, backward compatible by default,
to _prep_server_detail but changes ShowServer and RebuildServer
to no longer refresh.

Change-Id: Ib1c9c424ed1cafc2dfd8be90af8de8a774bdfbf0
2018-06-08 11:46:29 -04:00
..
api Re-implement novaclient bits removed in 10.0 2018-03-13 09:10:45 -05:00
common Merge "Fix limits show command without Nova and Cinder" 2018-04-23 09:49:35 +00:00
compute Optimize _prep_server_detail to avoid redundant find_resource 2018-06-08 11:46:29 -04:00
identity Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
image Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Allow setting network-segment on subnet update 2018-06-06 11:56:39 +02:00
object Allow objects to be streamed to stdout 2017-07-05 20:08:18 -03:00
tests Optimize _prep_server_detail to avoid redundant find_resource 2018-06-08 11:46:29 -04:00
volume Update help text for encryption provider 2018-02-23 16:26:39 -05:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Useless line of code in shell.py 2017-09-08 06:28:15 +00:00