OSC 'node list' recognizes all provision states
Now OSC 'node list' command with --provision-state argument for 'available' will list all nodes whose provision state is 'available'. It will also accept all the provision-states for OSC 'node list' command. Change-Id: If0032f652bcb3f6638b59dba32b97cb19176df46 Closes-Bug: #1663202
This commit is contained in:
parent
9a67f1a316
commit
d55e363904
@ -564,9 +564,7 @@ class ListBaremetalNode(command.Lister):
|
||||
'--provision-state',
|
||||
dest='provision_state',
|
||||
metavar='<provision state>',
|
||||
choices=self.PROVISION_STATES,
|
||||
help=_("Limit list to nodes in <provision state>. One of %s.") %
|
||||
(", ".join(self.PROVISION_STATES)))
|
||||
help=_("List nodes in specified provision state."))
|
||||
parser.add_argument(
|
||||
'--resource-class',
|
||||
dest='resource_class',
|
||||
|
@ -778,18 +778,6 @@ class TestBaremetalList(TestBaremetal):
|
||||
**kwargs
|
||||
)
|
||||
|
||||
def test_baremetal_list_invalid_provision_state(self):
|
||||
arglist = [
|
||||
'--provision-state', 'invalid',
|
||||
]
|
||||
verifylist = [
|
||||
('provision_state', 'invalid'),
|
||||
]
|
||||
|
||||
self.assertRaises(oscutils.ParserException,
|
||||
self.check_parser,
|
||||
self.cmd, arglist, verifylist)
|
||||
|
||||
def test_baremetal_list_resource_class(self):
|
||||
arglist = [
|
||||
'--resource-class', 'foo',
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- Allows all provision states for OSC node list
|
||||
command with --provision-state argument
|
Loading…
Reference in New Issue
Block a user