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

Commit

Permalink
add #!, hide ssl notice if it's already active
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Sep 6, 2017
1 parent a711e00 commit 5c515c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudflare-partner-cli.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
#coding: utf-8
import os
import json
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 5c515c8

Please sign in to comment.