From d1c285b70b85a827bf0a18443aa83580cecabc35 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Wed, 21 Nov 2012 17:20:03 +0100 Subject: [PATCH] Port may be an integer when parsed from the play --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 90435b5807..b3057450cc 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -77,7 +77,7 @@ class Play(object): self.gather_facts = ds.get('gather_facts', None) self.serial = ds.get('serial', 0) - if self.remote_port is not None: + if isinstance(self.remote_port, basestring): self.remote_port = utils.template(basedir, self.remote_port, self.vars) self._update_vars_files_for_host(None)