Fix --centos-mirror default

This option has been deprecated in commit [1] but still needs to
keep backwards compatibility with a default mirror for centos.

[1] 98a91a87df

Change-Id: Id3fa45175b9d98d4bdb5fd178ab6d037807edfa1
Closes-Bug: #1818677
This commit is contained in:
Rafael Folco 2019-03-07 18:02:06 -03:00
parent 7dfdcbdca1
commit 8f0397e37d
1 changed files with 5 additions and 6 deletions

View File

@ -114,13 +114,12 @@ def _parse_args():
parser.add_argument('-o', '--output-path',
default=DEFAULT_OUTPUT_PATH,
help='Directory in which to save the selected repos.')
parser.add_argument(
'--mirror',
default=DEFAULT_MIRROR_MAP[distro_key],
help='Server from which to install base OS packages. '
'Default value is based on distro param.')
parser.add_argument('--mirror',
default=DEFAULT_MIRROR_MAP[distro_key],
help='Server from which to install base OS packages. '
'Default value is based on distro param.')
parser.add_argument('--centos-mirror',
default=None,
default=DEFAULT_MIRROR_MAP[distro_key],
help='[deprecated] Server from which to install base '
'CentOS packages. If mentioned it will be used '
'as --mirror for backwards compatibility.')