Skip to content

Commit

Permalink
don't fail if yum clean fails (#289)
Browse files Browse the repository at this point in the history
this might happen sometimes, but it's not important enough to make
bootstrap bail
  • Loading branch information
evgeni committed Feb 7, 2019
1 parent e7bd521 commit 2792943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def register_systems(org_name, activationkey):
def unregister_system():
"""Unregister the host using `subscription-manager`."""
print_generic("Cleaning old yum metadata")
call_yum("clean", "metadata dbcache")
call_yum("clean", "metadata dbcache", False)
print_generic("Unregistering")
exec_failok("/usr/sbin/subscription-manager unregister")
exec_failok("/usr/sbin/subscription-manager clean")
Expand Down

0 comments on commit 2792943

Please sign in to comment.