Kaynağa Gözat

tools: minor fix for qvm-check

Marek Marczykowski-Górecki 7 yıl önce
ebeveyn
işleme
6e84422062
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      qubesmgmt/tools/qvm_check.py

+ 1 - 2
qubesmgmt/tools/qvm_check.py

@@ -40,8 +40,7 @@ parser.add_argument("--template", action="store_true", dest="template",
 
 def print_msg(domains, what_single, what_plural):
     '''Print message in appropriate form about given domain(s)'''
-    # pylint: disable=len-as-condition
-    if len(domains) == 0:
+    if not domains:
         print("None of given VM {!s}".format(what_single))
     elif len(domains) == 1:
         print("VM {!s} {!s}".format(domains[0], what_single))