瀏覽代碼

cmd_tls: parenthesis for strip and print of ca_list and crl

Daniel-Constantin Mierla 7 年之前
父節點
當前提交
193f3464e8
共有 1 個文件被更改,包括 9 次插入3 次删除
  1. 9 3
      kamcli/commands/cmd_tls.py

+ 9 - 3
kamcli/commands/cmd_tls.py

@@ -60,15 +60,21 @@ def tls_cfgprint(ctx, cfgpath):
                 and row["profile_name"] and row["profile_name"].strip() ):
             print("[{0:s}:{1:s}]".format(row["profile_type"],row["profile_name"]))
 
-            if row["method"] and row["method"].strip:
+            if row["method"] and row["method"].strip():
                 print("method={0:s}".format(row["method"]))
 
-            if row["certificate"] and row["certificate"].strip:
+            if row["certificate"] and row["certificate"].strip():
                 print("certificate={0:s}".format(row["certificate"]))
 
-            if row["private_key"] and row["private_key"].strip:
+            if row["private_key"] and row["private_key"].strip():
                 print("private_key={0:s}".format(row["private_key"]))
 
+            if row["ca_list"] and row["ca_list"].strip():
+                print("ca_list={0:s}".format(row["ca_list"]))
+
+            if row["crl"] and row["crl"].strip():
+                print("crl={0:s}".format(row["crl"]))
+
         pcount += 1
 
 ##