diff options
author | QijunPan <panqijun@huawei.com> | 2017-12-13 21:44:45 +0800 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2017-12-13 13:44:45 +0000 |
commit | 4f1586ec07e2340b52c1f68cfd1cc9133000d26e (patch) | |
tree | ae1f685ce4d3f7dd8664afcbb37428895f8c18ab | |
parent | 06ddcf6fa7c3dfc9fb977cae6f8433f1e154e58e (diff) | |
download | ansible-4f1586ec07e2340b52c1f68cfd1cc9133000d26e.tar.gz |
fix CloudEngine host failed #27903 (#33732)
* Update ce.py
* Update ce.py
fix CloudEngine host failed #27903
-rw-r--r-- | lib/ansible/plugins/action/ce.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/action/ce.py b/lib/ansible/plugins/action/ce.py index 85ae658589..c9e5d8e5ca 100644 --- a/lib/ansible/plugins/action/ce.py +++ b/lib/ansible/plugins/action/ce.py @@ -63,8 +63,7 @@ class ActionModule(_ActionModule): host=pc.remote_addr, port=pc.port, username=pc.remote_user, - password=pc.password, - ssh_keyfile=pc.private_key_file + password=pc.password ) display.vvv('using connection plugin %s' % pc.connection, pc.remote_addr) connection = self._shared_loader_obj.connection_loader.get('persistent', pc, sys.stdin) @@ -88,6 +87,7 @@ class ActionModule(_ActionModule): # make sure a transport value is set in args self._task.args['transport'] = transport + self._task.args['provider'] = provider result = super(ActionModule, self).run(tmp, task_vars) return result |