Skip to content

Commit

Permalink
bugfix: a backup record doesn't need to exist for --dump
Browse files Browse the repository at this point in the history
  • Loading branch information
lirazsiri committed Oct 17, 2013
1 parent 70d0043 commit 7f1602c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd_backup.py
Expand Up @@ -345,13 +345,11 @@ def main():
if not opt_simulate:
registry.backup_resume_conf = conf

backup_id = registry.hbr.backup_id

def backup_inprogress(bool):
is_hub_address = registry.hbr and registry.hbr.address == conf.address
if not opt_simulate and is_hub_address:
try:
hb.set_backup_inprogress(backup_id, bool)
hb.set_backup_inprogress(registry.hbr.backup_id, bool)
except hb.Error, e:
warn("can't update Hub of backup %s: %s" % ("in progress" if bool else "completed", str(e)))

Expand Down

0 comments on commit 7f1602c

Please sign in to comment.