mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
added documentation to command: tower-manage register_instance --help
This commit is contained in:
@@ -27,10 +27,24 @@ class Command(BaseCommand):
|
|||||||
existing registration plus `--timid`.
|
existing registration plus `--timid`.
|
||||||
"""
|
"""
|
||||||
option_list = BaseCommand.option_list + (
|
option_list = BaseCommand.option_list + (
|
||||||
make_option('--timid', action='store_true', dest='timid'),
|
make_option('--timid',
|
||||||
make_option('--hostname', dest='hostname', default=''),
|
action='store_true',
|
||||||
make_option('--primary', action='store_true', dest='primary'),
|
dest='timid',
|
||||||
make_option('--secondary', action='store_false', dest='primary'),
|
help='Fail if the primary host specified is already registered as '
|
||||||
|
'another instance or there already exists a primary different '
|
||||||
|
'from the one specified.'),
|
||||||
|
make_option('--hostname',
|
||||||
|
dest='hostname',
|
||||||
|
default='',
|
||||||
|
help='instance to register'),
|
||||||
|
make_option('--primary',
|
||||||
|
action='store_true',
|
||||||
|
dest='primary',
|
||||||
|
help='register instance as primary'),
|
||||||
|
make_option('--secondary',
|
||||||
|
action='store_false',
|
||||||
|
dest='primary',
|
||||||
|
help='register instance as secondary'),
|
||||||
)
|
)
|
||||||
|
|
||||||
def handle(self, **options):
|
def handle(self, **options):
|
||||||
|
|||||||
Reference in New Issue
Block a user