Fixed type check
This commit is contained in:
parent
2bc5dd04d7
commit
3c461e84c6
1 changed files with 1 additions and 1 deletions
|
@ -633,7 +633,7 @@ class RcInstruction(abc.ABC):
|
||||||
if may_be_template:
|
if may_be_template:
|
||||||
self._templar.available_variables = variables
|
self._templar.available_variables = variables
|
||||||
real_name = self._templar.template(name)
|
real_name = self._templar.template(name)
|
||||||
if not isinstance(name, string_types):
|
if not isinstance(real_name, string_types):
|
||||||
raise AnsibleRuntimeError(
|
raise AnsibleRuntimeError(
|
||||||
"%s: '%s' did not coalesce into a string" % (self._action, name)
|
"%s: '%s' did not coalesce into a string" % (self._action, name)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue