Skip to content

Commit

Permalink
Update download_repofile helper to create repo file with product name (
Browse files Browse the repository at this point in the history
…#16410)

(cherry picked from commit 59aac2b)
  • Loading branch information
jameerpathan111 authored and web-flow committed Sep 18, 2024
1 parent 87e5beb commit 702b441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robottelo/host_helpers/contenthost_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def download_repofile(self, product=None, release=None, snap='', proxy=None):
if not proxy and settings.server.is_ipv6:
proxy = settings.server.http_proxy_ipv6_url
url = dogfood_repofile_url(settings.ohsnap, product, release, v_major, snap, proxy=proxy)
command = f'curl -o /etc/yum.repos.d/dogfood.repo -L {url}'
command = f'curl -o /etc/yum.repos.d/{product}.repo -L {url}'
if settings.server.is_ipv6:
command += f' -x {settings.server.http_proxy_ipv6_url}'
self.execute(command)
Expand Down

0 comments on commit 702b441

Please sign in to comment.