瀏覽代碼

Print vm list before prompt

Christopher Laprise 6 年之前
父節點
當前提交
8b03c9cc9c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      qubesadmin/tools/qvm_remove.py

+ 2 - 0
qubesadmin/tools/qvm_remove.py

@@ -38,6 +38,8 @@ def main(args=None, app=None):  # pylint: disable=missing-docstring
     go_ahead = ""
     if not args.no_confirm:
         print("This will completely remove the selected VM(s)...")
+        for vm in args.domains:
+            print(" ", vm.name)
         go_ahead = input("Are you sure? [y/N] ").upper()
 
     if args.no_confirm or go_ahead == "Y":