Authored by root

Remove redundant print

... ... @@ -57,7 +57,7 @@ class QcloudApi:
params['Signature'] = sign
response_dict = requests.post("https://" + req_url, data=params).json()
print("call qcloud api success. params:\n %s \n" % (params))
#print("call qcloud api success. params:\n %s \n" % (params))
#print json.dumps(response_dict, indent=4, sort_keys=True)
return response_dict
... ...
... ... @@ -128,6 +128,7 @@ class EMRClusterScanner(object):
cmd = 'ansible-playbook -i {0} {1}'.format(self.inventoryFile,self.playbook_resolv)
retry = 3
while retry > 0:
print cmd
output = os.popen(cmd).read()
if 'changed=1' not in output or 'unreachable=1' in output:
retry-=1
... ... @@ -135,6 +136,7 @@ class EMRClusterScanner(object):
time.sleep(300)
continue
else:
print "DNS 同步成功"
return True
return False
else:
... ...