Skip to content

Commit 6b927ac

Browse files
committed
force delete orphans
--
1 parent ec96648 commit 6b927ac

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

amicleaner/cli.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ def clean_orphans(self):
120120

121121
Printer.print_orphan_snapshots(snaps)
122122

123-
answer = raw_input(
124-
"Do you want to continue and remove {} orphan snapshots "
125-
"[y/N] ? : ".format(len(snaps)))
126-
confirm = (answer.lower() == "y")
123+
if not self.force_delete:
124+
answer = raw_input(
125+
"Do you want to continue and remove {} orphan snapshots "
126+
"[y/N] ? : ".format(len(snaps)))
127+
confirm = (answer.lower() == "y")
128+
else:
129+
confirm = True
127130

128131
if confirm:
129132
print "Removing orphan snapshots... "

0 commit comments

Comments
 (0)