You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/xxx/Network/scms/ansible-test.py", line 14, in
result = runner.run()
File "/home/xxx/Network/scms/ansible2_myAPI/runner.py", line 158, in run
raise Exception(e)
Exception: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/home/xxx/Network/scms/ansible-test.py", line 14, in
result = runner.run()
File "/home/xxx/Network/scms/ansible2_myAPI/runner.py", line 158, in run
raise Exception(e)
Exception: 'str' object has no attribute 'get'
提示这个错误呢?什么原因呢
from ansible2_myAPI.runner import Runner
runner = Runner(
module_name="shell",
module_args="uptime",
remote_user="test",
pattern="all",
hosts="172.19.0.70, ",
passwords='123'
)
result = runner.run()
The text was updated successfully, but these errors were encountered: