Permalink
Browse files

add #!, hide ssl notice if it's already active

  • Loading branch information...
fffonion committed Sep 6, 2017
1 parent a711e00 commit 5c515c8a3685fecd2a99a9e1270b2a0161e50724
Showing with 2 additions and 1 deletion.
  1. +2 −1 cloudflare-partner-cli.py
View
3 cloudflare-partner-cli.py 100644 → 100755
@@ -1,3 +1,4 @@
#!/usr/bin/env python
#coding: utf-8
import os
import json
@@ -295,7 +296,7 @@ def _zone_lookup(self, j):
ssl_resolve_to = hosted[z].encode('utf-8')
continue
print("%-32s%-24s%-32s" % (z, hosted[z], tos[z]))
if ssl_cname:
if ssl_cname and j['response']['ssl_status'] != "ready":
print("")
log("If you want to activate SSL, please set CNAME record of %s to %s and " \
"run this \"ssl_verfication\" after record become effective", (ssl_cname, ssl_resolve_to))

0 comments on commit 5c515c8

Please sign in to comment.