diff options
author | xiaolihope <dixiaobj@cn.ibm.com> | 2016-04-26 10:40:42 +0800 |
---|---|---|
committer | xiaolihope <dixiaobj@cn.ibm.com> | 2016-04-26 10:44:11 +0800 |
commit | d60ad183ab0b00d90d7ba03304dbf0f31cdcd6a0 (patch) | |
tree | 3ba7d34a7cd754fe1c31ed13bbe22fd56194ba01 /heatclient | |
parent | a503bfeff00c0a62ed46532e9bf94ae88bf18f70 (diff) | |
download | python-heatclient-d60ad183ab0b00d90d7ba03304dbf0f31cdcd6a0.tar.gz |
Moved required parameter for visibility
This change moved the required parameters so that it
is more easily visible to the user what is required.
Change-Id: I888960d2c83c96af80414c61dfd5faf38478f3fa
Diffstat (limited to 'heatclient')
-rw-r--r-- | heatclient/osc/v1/software_deployment.py | 12 | ||||
-rw-r--r-- | heatclient/osc/v1/stack.py | 12 | ||||
-rw-r--r-- | heatclient/osc/v1/template.py | 12 |
3 files changed, 18 insertions, 18 deletions
diff --git a/heatclient/osc/v1/software_deployment.py b/heatclient/osc/v1/software_deployment.py index 7e3a66a..983837a 100644 --- a/heatclient/osc/v1/software_deployment.py +++ b/heatclient/osc/v1/software_deployment.py @@ -65,12 +65,6 @@ class CreateDeployment(format_utils.YamlFormat): help=_('ID of the configuration to deploy') ) parser.add_argument( - '--server', - metavar='<server>', - required=True, - help=_('ID of the server being deployed to') - ) - parser.add_argument( '--signal-transport', metavar='<signal-transport>', default='TEMP_URL_SIGNAL', @@ -96,6 +90,12 @@ class CreateDeployment(format_utils.YamlFormat): default=60, help=_('Deployment timeout in minutes') ) + parser.add_argument( + '--server', + metavar='<server>', + required=True, + help=_('ID of the server being deployed to') + ) return parser def take_action(self, parsed_args): diff --git a/heatclient/osc/v1/stack.py b/heatclient/osc/v1/stack.py index cf2e54e..2302180 100644 --- a/heatclient/osc/v1/stack.py +++ b/heatclient/osc/v1/stack.py @@ -721,12 +721,6 @@ class AdoptStack(show.ShowOne): help=_('Stack creation timeout in minutes') ) parser.add_argument( - '--adopt-file', - metavar='<adopt-file>', - required=True, - help=_('Path to adopt stack data file') - ) - parser.add_argument( '--enable-rollback', action='store_true', help=_('Enable rollback on create/update failure') @@ -743,6 +737,12 @@ class AdoptStack(show.ShowOne): action='store_true', help=_('Wait until stack adopt completes') ) + parser.add_argument( + '--adopt-file', + metavar='<adopt-file>', + required=True, + help=_('Path to adopt stack data file') + ) return parser def take_action(self, parsed_args): diff --git a/heatclient/osc/v1/template.py b/heatclient/osc/v1/template.py index 2d3d7d1..36f6ca9 100644 --- a/heatclient/osc/v1/template.py +++ b/heatclient/osc/v1/template.py @@ -88,12 +88,6 @@ class Validate(format_utils.YamlFormat): def get_parser(self, prog_name): parser = super(Validate, self).get_parser(prog_name) parser.add_argument( - '-t', '--template', - metavar='<template>', - required=True, - help=_('Path to the template') - ) - parser.add_argument( '-e', '--environment', metavar='<environment>', action='append', @@ -116,6 +110,12 @@ class Validate(format_utils.YamlFormat): metavar='<error1,error2,...>', help=_('List of heat errors to ignore') ) + parser.add_argument( + '-t', '--template', + metavar='<template>', + required=True, + help=_('Path to the template') + ) return parser def take_action(self, parsed_args): |