diff --git a/plugins/pulp_rpm/plugins/importers/yum/sync.py b/plugins/pulp_rpm/plugins/importers/yum/sync.py index a1e42aec6..7c32d7d8c 100644 --- a/plugins/pulp_rpm/plugins/importers/yum/sync.py +++ b/plugins/pulp_rpm/plugins/importers/yum/sync.py @@ -126,6 +126,7 @@ def sync_feed(self): :rtype: list """ repo_url = self.config.get(importer_constants.KEY_FEED) + mirrorlist_url = repo_url if repo_url: repo_url = self._url_modify(repo_url, ensure_trailing_slash=True) self.tmp_dir = tempfile.mkdtemp(dir=self.working_dir) @@ -145,7 +146,7 @@ def sync_feed(self): pass # Try treating it as a mirrorlist. - urls = self._parse_as_mirrorlist(repo_url) + urls = self._parse_as_mirrorlist(mirrorlist_url) if urls: # set flag to True so when we would iterate through list of urls # we would not skip repomd steps