Merge "Remove default role-name from merge network param script"

This commit is contained in:
Zuul 2019-01-14 16:10:20 +00:00 committed by Gerrit Code Review
commit e8fd828d3b
2 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,8 @@
---
other:
- |
The utility script ``tools/merge-new-params-nic-config-script.py``
previously used the ``Controller`` role by default if the ``--role-name``
argument was not specified. The argument (``--role-name``) no longer have a
default. It is now mandatory to specify the role when merging new
parameters into existing network configuration templates.

View File

@ -39,12 +39,11 @@ def parse_opts(argv):
default=('%s/network_data.yaml') % DEFAULT_THT_DIR)
parser.add_argument('--role-name', metavar='ROLE-NAME',
help="Name of the role the NIC config is used for.",
default='Controller')
required=True)
parser.add_argument('-t', '--template', metavar='TEMPLATE_FILE',
help=("Existing NIC config template to merge "
"parameter too."),
required=True,
)
required=True)
parser.add_argument('--tht-dir', metavar='THT_DIR',
help=("Path to tripleo-heat-templates (THT) "
"directory"),