1
0
Fork 0
forked from infra/ansible

updates+uptimes: Remove dead code.

Signed-off-by: James Antill <james@and.org>
This commit is contained in:
James Antill 2026-02-17 15:34:02 -05:00
commit dacafc595d

View file

@ -372,10 +372,6 @@ def _ui_date(d1, align=None, prev=None):
return _ui_t_align(d1.date, align)
if prev is not None and d1.date == prev:
return _ui_t_align(" \" ", align)
if False and d1.date == backup_today: # Better, or no?
return _ui_t_align("today", align)
if False and d1.date == backup_yesterday:
return _ui_t_align("yesterday", align)
# YYYY-MM-DD
# 1234567890
if prev is None:
@ -1151,10 +1147,6 @@ def _cmd_update(args):
cmd = "update-daily" # This does the sorting etc.
elif fname_today is None:
cmd = "update-daily"
elif False: # -fast and -flush are the same now, so who cares.
mtime = os.path.getmtime(fname)
if (int(time.time()) - mtime) > conf_dur_flush_cache:
cmd = "update-fast"
if cmd == "update-host":
os.chdir("/srv/web/infra/ansible/playbooks")
@ -1510,10 +1502,6 @@ def _cmd_info(args):
if args.host:
# print("JDBG:", args.host)
hosts = [args.host]
if False and args.all:
for b in backups:
print("History:", b)
_print_info(hosts, lines2datas(bfname2lines(b)))
if args.hists:
hists = args.hists[:]
for hist in hists: