Remove redundant print
Showing
2 changed files
with
3 additions
and
1 deletions
@@ -57,7 +57,7 @@ class QcloudApi: | @@ -57,7 +57,7 @@ class QcloudApi: | ||
57 | params['Signature'] = sign | 57 | params['Signature'] = sign |
58 | response_dict = requests.post("https://" + req_url, data=params).json() | 58 | response_dict = requests.post("https://" + req_url, data=params).json() |
59 | 59 | ||
60 | - print("call qcloud api success. params:\n %s \n" % (params)) | 60 | + #print("call qcloud api success. params:\n %s \n" % (params)) |
61 | #print json.dumps(response_dict, indent=4, sort_keys=True) | 61 | #print json.dumps(response_dict, indent=4, sort_keys=True) |
62 | return response_dict | 62 | return response_dict |
63 | 63 |
@@ -128,6 +128,7 @@ class EMRClusterScanner(object): | @@ -128,6 +128,7 @@ class EMRClusterScanner(object): | ||
128 | cmd = 'ansible-playbook -i {0} {1}'.format(self.inventoryFile,self.playbook_resolv) | 128 | cmd = 'ansible-playbook -i {0} {1}'.format(self.inventoryFile,self.playbook_resolv) |
129 | retry = 3 | 129 | retry = 3 |
130 | while retry > 0: | 130 | while retry > 0: |
131 | + print cmd | ||
131 | output = os.popen(cmd).read() | 132 | output = os.popen(cmd).read() |
132 | if 'changed=1' not in output or 'unreachable=1' in output: | 133 | if 'changed=1' not in output or 'unreachable=1' in output: |
133 | retry-=1 | 134 | retry-=1 |
@@ -135,6 +136,7 @@ class EMRClusterScanner(object): | @@ -135,6 +136,7 @@ class EMRClusterScanner(object): | ||
135 | time.sleep(300) | 136 | time.sleep(300) |
136 | continue | 137 | continue |
137 | else: | 138 | else: |
139 | + print "DNS 同步成功" | ||
138 | return True | 140 | return True |
139 | return False | 141 | return False |
140 | else: | 142 | else: |
-
Please register or login to post a comment