1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Port may be an integer when parsed from the play

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-21 17:20:03 +01:00
parent 30fd37a68f
commit d1c285b70b

View file

@ -77,7 +77,7 @@ class Play(object):
self.gather_facts = ds.get('gather_facts', None) self.gather_facts = ds.get('gather_facts', None)
self.serial = ds.get('serial', 0) 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.remote_port = utils.template(basedir, self.remote_port, self.vars)
self._update_vars_files_for_host(None) self._update_vars_files_for_host(None)