Merge "Change the missing node_type to resource_class"

This commit is contained in:
Jenkins 2017-06-13 12:59:51 +00:00 committed by Gerrit Code Review
commit 4ae0b8032e
2 changed files with 3 additions and 3 deletions
api-ref/source/v1/samples/nodes
mogan/api/controllers/v1

@ -4,7 +4,7 @@
"node_uuid" : "99a0fdb0-d73f-471b-841d-a6e149c4a9a4",
"updated_at" : null,
"hypervisor_type" : "ironic",
"node_type" : "2288V3",
"resource_class" : "2288V3",
"created_at" : "2017-06-02T02:25:14+00:00",
"extra_specs" : {},
"availability_zone" : null
@ -12,7 +12,7 @@
{
"extra_specs" : {},
"availability_zone" : null,
"node_type" : "2288V3",
"resource_class" : "2288V3",
"hypervisor_type" : "ironic",
"node_uuid" : "4f047692-fe12-4706-993e-e1b4e99f016b",
"updated_at" : null,

@ -37,7 +37,7 @@ class Node(base.APIBase):
availability_zone = wtypes.text
"""The availability zone of the node"""
node_type = wtypes.text
resource_class = wtypes.text
"""The type of the node"""
hypervisor_type = wtypes.text