From 8f0397e37dc8fc7982f29f79fe2d49af77a5c8da Mon Sep 17 00:00:00 2001 From: Rafael Folco Date: Thu, 7 Mar 2019 18:02:06 -0300 Subject: [PATCH] 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] 98a91a87df6b8294a0133809e69830103ec2bd73 Change-Id: Id3fa45175b9d98d4bdb5fd178ab6d037807edfa1 Closes-Bug: #1818677 --- tripleo_repos/main.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tripleo_repos/main.py b/tripleo_repos/main.py index 040d7f6..f773e9b 100755 --- a/tripleo_repos/main.py +++ b/tripleo_repos/main.py @@ -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.')