Fixing inconsistent indentation.

This commit is contained in:
Dan Helfman 2017-10-25 21:58:02 -07:00
parent 7458769cb3
commit cc78223164

View file

@ -104,21 +104,21 @@ def main(): # pragma: no cover
create.initialize(storage) create.initialize(storage)
hook.execute_hook(hooks.get('before_backup')) hook.execute_hook(hooks.get('before_backup'))
for repository in location['repositories']: for repository in location['repositories']:
if args.prune: if args.prune:
logger.info('{}: Pruning archives'.format(repository)) logger.info('{}: Pruning archives'.format(repository))
prune.prune_archives(args.verbosity, repository, retention, remote_path=remote_path) prune.prune_archives(args.verbosity, repository, retention, remote_path=remote_path)
if args.create: if args.create:
logger.info('{}: Creating archive'.format(repository)) logger.info('{}: Creating archive'.format(repository))
create.create_archive( create.create_archive(
args.verbosity, args.verbosity,
repository, repository,
location, location,
storage, storage,
) )
if args.check: if args.check:
logger.info('{}: Running consistency checks'.format(repository)) logger.info('{}: Running consistency checks'.format(repository))
check.check_archives(args.verbosity, repository, consistency, remote_path=remote_path) check.check_archives(args.verbosity, repository, consistency, remote_path=remote_path)
hook.execute_hook(hooks.get('after_backup')) hook.execute_hook(hooks.get('after_backup'))
except (OSError, CalledProcessError): except (OSError, CalledProcessError):