Fixed type check

This commit is contained in:
Emmanuel BENOîT 2022-10-07 16:51:14 +02:00
parent 2bc5dd04d7
commit 3c461e84c6
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF

View file

@ -633,7 +633,7 @@ class RcInstruction(abc.ABC):
if may_be_template:
self._templar.available_variables = variables
real_name = self._templar.template(name)
if not isinstance(name, string_types):
if not isinstance(real_name, string_types):
raise AnsibleRuntimeError(
"%s: '%s' did not coalesce into a string" % (self._action, name)
)