mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
updates+uptimes: Fix cmd assignment.
Signed-off-by: James Antill <james@and.org>
This commit is contained in:
@@ -1097,13 +1097,13 @@ def _cmd_remove_old_hosts(args):
|
||||
remove_old_hosts()
|
||||
|
||||
def _cmd_update(args):
|
||||
cmd = args.cmd
|
||||
# First remove machines that aren't in inventory anymore, as the playbook
|
||||
# only adds/updates them.
|
||||
if cmd != "update-daily-refresh": # Just wastes time if refresh.
|
||||
remove_old_hosts()
|
||||
|
||||
# Now update whatever is left.
|
||||
cmd = args.cmd
|
||||
if cmd == "update":
|
||||
cmd = "update-flush"
|
||||
if not os.path.exists(fname):
|
||||
|
||||
Reference in New Issue
Block a user