Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit 5c515c8

Browse files
committed
add #!, hide ssl notice if it's already active
1 parent a711e00 commit 5c515c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cloudflare-partner-cli.py

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
#coding: utf-8
23
import os
34
import json
@@ -295,7 +296,7 @@ def _zone_lookup(self, j):
295296
ssl_resolve_to = hosted[z].encode('utf-8')
296297
continue
297298
print("%-32s%-24s%-32s" % (z, hosted[z], tos[z]))
298-
if ssl_cname:
299+
if ssl_cname and j['response']['ssl_status'] != "ready":
299300
print("")
300301
log("If you want to activate SSL, please set CNAME record of %s to %s and " \
301302
"run this \"ssl_verfication\" after record become effective", (ssl_cname, ssl_resolve_to))

0 commit comments

Comments
 (0)