Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Oct 31, 2024
1 parent 40723c6 commit 1be71d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qmprestore
Original file line number Diff line number Diff line change
Expand Up @@ -150,25 +150,23 @@ if action == "merge":
if image.merge(argv):
log.info("Image file merge successful.")
sys.exit(0)
sys.exit(1)

if action == "rebase":
log.info("Rebasing images in source folder: [%s]", argv.dir)
if image.rebase(argv):
log.info("Image file rebase successful.")
sys.exit(0)
sys.exit(1)

if action == "snapshotrebase":
log.info("Rebasing using snapshot images in source folder: [%s]", argv.dir)
if image.snapshot_rebase(argv):
log.info("Image file rebase successful.")
sys.exit(0)
sys.exit(1)

if action == "commit":
log.info("Rebasing and committing images in source folder: [%s]", argv.dir)
if image.commit(argv):
log.info("Image file rebase and commit successful.")
sys.exit(0)
sys.exit(1)

sys.exit(1)

0 comments on commit 1be71d9

Please sign in to comment.