summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuby Loo <rloo@yahoo-inc.com>2015-07-07 23:08:34 +0000
committerRuby Loo <rloo@yahoo-inc.com>2015-07-07 23:08:34 +0000
commitaea764b451e69d9b3782c482cd017c2bdd140c15 (patch)
tree135bd6f920360daacc46dab47c299510e978d340
parente144f4762a53c9b408cd8df9b6628ccd6fc017f1 (diff)
downloadpython-ironicclient-aea764b451e69d9b3782c482cd017c2bdd140c15.tar.gz
Expose node's clean_step and bump default version
This exposes the node's clean_step field by bumping the default version from 1.6 to 1.7 and adding clean_step to various lists. Change-Id: I2d9f2e58ed198bc8cb5bab67a6f8baf85bbbf972 Closes-Bug: #1466693
-rw-r--r--ironicclient/common/http.py2
-rw-r--r--ironicclient/tests/unit/v1/test_node_shell.py1
-rw-r--r--ironicclient/v1/resource_fields.py3
3 files changed, 5 insertions, 1 deletions
diff --git a/ironicclient/common/http.py b/ironicclient/common/http.py
index c46e098..4614fde 100644
--- a/ironicclient/common/http.py
+++ b/ironicclient/common/http.py
@@ -36,7 +36,7 @@ from ironicclient import exc
# microversion support in the client properly! See
# http://specs.openstack.org/openstack/ironic-specs/specs/kilo/api-microversions.html # noqa
# for full details.
-DEFAULT_VER = '1.6'
+DEFAULT_VER = '1.7'
LOG = logging.getLogger(__name__)
diff --git a/ironicclient/tests/unit/v1/test_node_shell.py b/ironicclient/tests/unit/v1/test_node_shell.py
index 6613ffa..079f2c6 100644
--- a/ironicclient/tests/unit/v1/test_node_shell.py
+++ b/ironicclient/tests/unit/v1/test_node_shell.py
@@ -29,6 +29,7 @@ class NodeShellTest(utils.BaseTestCase):
node = object()
n_shell._print_node_show(node)
exp = ['chassis_uuid',
+ 'clean_step',
'created_at',
'console_enabled',
'driver',
diff --git a/ironicclient/v1/resource_fields.py b/ironicclient/v1/resource_fields.py
index 3c8e723..c3ab2eb 100644
--- a/ironicclient/v1/resource_fields.py
+++ b/ironicclient/v1/resource_fields.py
@@ -33,6 +33,7 @@ class Resource(object):
FIELDS = {
'address': 'Address',
'chassis_uuid': 'Chassis UUID',
+ 'clean_step': 'Clean Step',
'console_enabled': 'Console Enabled',
'created_at': 'Created At',
'description': 'Description',
@@ -119,6 +120,7 @@ CHASSIS_RESOURCE = Resource(
NODE_DETAILED_RESOURCE = Resource(
['chassis_uuid',
'created_at',
+ 'clean_step',
'console_enabled',
'driver',
'driver_info',
@@ -146,6 +148,7 @@ NODE_DETAILED_RESOURCE = Resource(
# the "nodes" database table. "chassis_id" is stored, but it is
# internal to ironic. See bug #1443003 for more details.
'chassis_uuid',
+ 'clean_step',
'driver_info',
'driver_internal_info',
'extra',