Skip to content

Commit

Permalink
Do not disable beaker-tasks repo
Browse files Browse the repository at this point in the history
  • Loading branch information
lpramuk committed Mar 30, 2021
1 parent a85929e commit 5cff627
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions automation_tools/repository.py
Expand Up @@ -188,11 +188,7 @@ def disable_beaker_repos(**kwargs):
"""
# Clean up system if Beaker-based
result = run('which yum-config-manager', quiet=True)
if result.succeeded:
run('yum-config-manager --disable "beaker*"', warn_only=True)
else:
run('sed -i "s/^enabled=.*/enabled=0/" /etc/yum.repos.d/beaker-*.repo', warn_only=True)
run('sed -i "s/^enabled=.*/enabled=0/" /etc/yum.repos.d/beaker-[^t]*.repo', warn_only=True)
run('rm -rf /var/cache/yum*')


Expand Down

0 comments on commit 5cff627

Please sign in to comment.