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:
parent
7dfdcbdca1
commit
8f0397e37d
@ -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',
|
||||
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.')
|
||||
|
Loading…
Reference in New Issue
Block a user