Commit cb200b07 by Michael DeHaan

Merge pull request #4208 from ashorin/dynamic-port

Allow for dynamic accelerate_port: and port: in plays
parents 1508f80b cb4b9640
...@@ -624,7 +624,7 @@ class Runner(object): ...@@ -624,7 +624,7 @@ class Runner(object):
# calls just to accomodate this one case # calls just to accomodate this one case
actual_port = [actual_port, self.accelerate_port] actual_port = [actual_port, self.accelerate_port]
elif actual_port is not None: elif actual_port is not None:
actual_port = int(actual_port) actual_port = int(template.template(self.basedir, actual_port, inject))
except ValueError, e: except ValueError, e:
result = dict(failed=True, msg="FAILED: Configured port \"%s\" is not a valid port, expected integer" % actual_port) result = dict(failed=True, msg="FAILED: Configured port \"%s\" is not a valid port, expected integer" % actual_port)
return ReturnData(host=host, comm_ok=False, result=result) return ReturnData(host=host, comm_ok=False, result=result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment