Set default inventory file for inventory-manage.py

The script inventory-manage.py takes a file argument. The default name
for this file, in the project, is openstack_inventory.json. Not only is
it the default but the rest of the project assumes that it will be that
name.

This commit sets the default argument for the file parameter to this
assumed file name - 'openstack_inventory.json'.

Change-Id: I635122d22bb0467aad21f48dccda1bc0444518c1
Closes-bug: #1454324
This commit is contained in:
git-harry 2015-07-07 11:13:03 +01:00
parent c1c7ffc1c7
commit 5768314812

View File

@ -29,7 +29,7 @@ def file_find(filename, user_file=None, pass_exception=False):
$(pwd)/openstack_deploy/
:param filename: ``str`` Name of the file to find
:param user_file: ``str`` Additional localtion to look in FIRST for a file
:param user_file: ``str`` Additional location to look in FIRST for a file
"""
file_check = [
os.path.join(
@ -85,8 +85,8 @@ def args():
'-f',
'--file',
help='Inventory file.',
required=True,
default=None
required=False,
default='openstack_inventory.json'
)
parser.add_argument(
'-s',