Fix node_uuid option is required for port-create
A previous commit separated the -n/--node option from the --node_uuid option on the "port-create" command. This meant that, even when the user specified --node_uuid, the client required -n/--node as well and would error out. This moves these options onto a single CLI argument. Change-Id: Idcc3217e07f9600f7db18182e9b1bc8b2ae356d3 Closes-bug: #1441374
This commit is contained in:
parent
20117dca60
commit
fe9a7b5628
|
@ -15,8 +15,6 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import argparse
|
||||
|
||||
from ironicclient.common import utils
|
||||
from ironicclient.openstack.common import cliutils
|
||||
from ironicclient.v1 import resource_fields as res_fields
|
||||
|
@ -108,14 +106,11 @@ def do_port_list(cc, args):
|
|||
required=True,
|
||||
help='MAC address for this port.')
|
||||
@cliutils.arg(
|
||||
'-n', '--node',
|
||||
'-n', '--node', '--node_uuid',
|
||||
dest='node_uuid',
|
||||
metavar='<node>',
|
||||
required=True,
|
||||
help='UUID of the node that this port belongs to.')
|
||||
@cliutils.arg(
|
||||
'--node_uuid',
|
||||
help=argparse.SUPPRESS)
|
||||
@cliutils.arg(
|
||||
'-e', '--extra',
|
||||
metavar="<key=value>",
|
||||
|
|
Loading…
Reference in New Issue