Code Review
/
ccsdk
/
distribution.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
migrate ansible server python scripts to python3
[ccsdk/distribution.git]
/
ansible-server
/
src
/
main
/
ansible-server
/
AnsibleModule.py
diff --git
a/ansible-server/src/main/ansible-server/AnsibleModule.py
b/ansible-server/src/main/ansible-server/AnsibleModule.py
index
71d0c05
..
80e59e2
100755
(executable)
--- a/
ansible-server/src/main/ansible-server/AnsibleModule.py
+++ b/
ansible-server/src/main/ansible-server/AnsibleModule.py
@@
-80,7
+80,7
@@
def ansibleSysCall (inventory_path, playbook_path, nodelist, mandatory, envparam
log.append (line)
else:
for line in stdout_value: # p.stdout.readlines():
log.append (line)
else:
for line in stdout_value: # p.stdout.readlines():
- print
line
# line,
+ print
(line)
# line,
if ParseFlag and len(line.strip())>0:
ip_address = line.split(':')[0].strip()
ok_flag = line.split(':')[1].strip().split('=')[1].split('changed')[0].strip()
if ParseFlag and len(line.strip())>0:
ip_address = line.split(':')[0].strip()
ok_flag = line.split(':')[1].strip().split('=')[1].split('changed')[0].strip()
@@
-120,7
+120,7
@@
if __name__ == '__main__':
p = Process(nodelist=ansible_call, args=('ansible_module_config', playbook_file, nodelist,d, ))
p.start()
p = Process(nodelist=ansible_call, args=('ansible_module_config', playbook_file, nodelist,d, ))
p.start()
- print
"Process running"
- print
d
+ print
("Process running")
+ print
(d)
p.join()
p.join()
- print
d
+ print
(d)