From e9a5c535123b83b29e8942ebd99afd7fbdb6fe2d Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 22 Jun 2018 13:58:40 -0500 Subject: [PATCH] Handle typing of vars_files in Play.get_vars_files. Fixes #14708 (#41801) --- lib/ansible/playbook/play.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 72b4cbc357..7554b92b8e 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -286,6 +286,8 @@ class Play(Base, Taggable, Become): def get_vars_files(self): if self.vars_files is None: return [] + elif not isinstance(self.vars_files, list): + return [self.vars_files] return self.vars_files def get_handlers(self):