From 50dc1f09ad155b67d7704bddf27bf4eb3abe3cd3 Mon Sep 17 00:00:00 2001 From: QijunPan Date: Sat, 9 Dec 2017 21:33:31 +0800 Subject: [PATCH] fix ce.py provider param issue (#27876) * Update ce.py * Update ce.py fix CloudEngine host failed #27903 --- lib/ansible/plugins/action/ce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/action/ce.py b/lib/ansible/plugins/action/ce.py index 1d8889786d2..bf3b1042d2a 100644 --- a/lib/ansible/plugins/action/ce.py +++ b/lib/ansible/plugins/action/ce.py @@ -65,8 +65,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) @@ -91,6 +90,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