Browse Source

cmd_tls: parenthesis for strip and print of ca_list and crl

Daniel-Constantin Mierla 7 years ago
parent
commit
193f3464e8
1 changed files with 9 additions and 3 deletions
  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() ):
                 and row["profile_name"] and row["profile_name"].strip() ):
             print("[{0:s}:{1:s}]".format(row["profile_type"],row["profile_name"]))
             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"]))
                 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"]))
                 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"]))
                 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
         pcount += 1
 
 
 ##
 ##