diff options
Diffstat (limited to 'openstackclient/compute')
| -rw-r--r-- | openstackclient/compute/v2/server.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py index 291244e7..436c2597 100644 --- a/openstackclient/compute/v2/server.py +++ b/openstackclient/compute/v2/server.py @@ -2569,6 +2569,21 @@ class ListServer(command.Lister): else: s.security_groups_name = [] + # The host_status field contains the status of the compute host the + # server is on. It is only returned by the API when the nova-api + # policy allows. Users can look at the host_status field when, for + # example, their server has status ACTIVE but is unresponsive. The + # host_status field can indicate a possible problem on the host + # it's on, providing useful information to a user in this + # situation. + if ( + compute_client.api_version >= api_versions.APIVersion('2.16') and + parsed_args.long + ): + if any([hasattr(s, 'host_status') for s in data]): + columns += ('Host Status',) + column_headers += ('Host Status',) + table = ( column_headers, ( |
