forked from infra/ansible
updates+uptimes: Remove dead code.
Signed-off-by: James Antill <james@and.org>
This commit is contained in:
parent
a5905f94e0
commit
dacafc595d
1 changed files with 0 additions and 12 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue