From fb1a313974ea49405d093ffbf41da059a278289b Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Sat, 31 Mar 2012 09:11:07 +0200 Subject: [PATCH] Correct default user and port in playbook. They are set in the constructor. --- lib/ansible/playbook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index 4881243f154..4dd5906498a 100755 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -472,8 +472,8 @@ class PlayBook(object): vars_files = pg.get('vars_files', {}) tasks = pg.get('tasks', []) handlers = pg.get('handlers', []) - user = pg.get('user', C.DEFAULT_REMOTE_USER) - port = pg.get('port', C.DEFAULT_REMOTE_PORT) + user = pg.get('user', self.remote_user) + port = pg.get('port', self.remote_port) sudo = pg.get('sudo', False) self.callbacks.on_play_start(pattern)