From cc4847dfdf1f6dde9b0ce513494f4c354077b099 Mon Sep 17 00:00:00 2001 From: bharath Date: Wed, 10 Oct 2018 23:24:46 +0530 Subject: [PATCH] Fix hosts commands Change-Id: I3164166d3fc9ccbc90bbac78a7de214fab9f61b2 --- gyanclient/api_versions.py | 2 +- gyanclient/common/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gyanclient/api_versions.py b/gyanclient/api_versions.py index 02eff40..fd0cc49 100644 --- a/gyanclient/api_versions.py +++ b/gyanclient/api_versions.py @@ -238,7 +238,7 @@ def update_headers(headers, api_version): if not api_version.is_null() and api_version.ver_minor != 0: version_string = api_version.get_string() - headers[HEADER_NAME] = '%s %s' % (SERVICE_TYPE, version_string) + #headers[HEADER_NAME] = '%s %s' % (SERVICE_TYPE, version_string) def _add_substitution(versioned_method): diff --git a/gyanclient/common/utils.py b/gyanclient/common/utils.py index 4cab183..44bfc59 100644 --- a/gyanclient/common/utils.py +++ b/gyanclient/common/utils.py @@ -123,7 +123,7 @@ def remove_null_parms(**kwargs): return new -def list_nodes(nodes): +def list_hosts(nodes): columns = ('uuid', 'name', 'type', 'status') utils.print_list(nodes, columns, {'versions': print_list_field('versions')},