From a63e130ffb49f39ea23e21b40bcb7fae61a212a0 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 6 Mar 2012 14:46:36 +0100 Subject: [PATCH] dom0/qvm-remove: with --just-db do not remove any files --- dom0/qvm-tools/qvm-remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-remove b/dom0/qvm-tools/qvm-remove index 95a064be..0cb4b9e1 100755 --- a/dom0/qvm-tools/qvm-remove +++ b/dom0/qvm-tools/qvm-remove @@ -84,7 +84,7 @@ def main(): if vm.installed_by_rpm: if options.verbose: print >> sys.stderr, "--> VM installed by RPM, leaving all the files on disk" - else: + elif not options.remove_from_db_only: if options.verbose: print "--> Removing all the files on disk..." #TODO: ask for confirmation, perhaps?