diff options
author | Andrey Shorin <a.shorin@hh.ru> | 2013-09-23 13:33:36 +0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2013-10-07 13:16:04 -0500 |
commit | b5f1f2e0bff75af9ccb9ae02f010b6da1956cd67 (patch) | |
tree | 9abf2d8661cc3ae73e19ab131838efffcb113db1 | |
parent | 9d5d88b59fa3fdbbec4f4cb269c446c666e3abbb (diff) | |
download | ansible-b5f1f2e0bff75af9ccb9ae02f010b6da1956cd67.tar.gz |
Allow for dynamic accelerate_port: and port: in plays
-rw-r--r-- | lib/ansible/runner/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index ef025dfb31..9f5af42a45 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -623,7 +623,7 @@ class Runner(object): # calls just to accomodate this one case actual_port = [actual_port, self.accelerate_port] elif actual_port is not None: - actual_port = int(actual_port) + actual_port = int(template.template(self.basedir, actual_port, inject)) except ValueError, e: 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) |