1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Handle typing of vars_files in Play.get_vars_files. Fixes #14708 (#41801)

This commit is contained in:
Matt Martz 2018-06-22 13:58:40 -05:00 committed by GitHub
parent dd932c9ace
commit e9a5c53512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,6 +286,8 @@ class Play(Base, Taggable, Become):
def get_vars_files(self): def get_vars_files(self):
if self.vars_files is None: if self.vars_files is None:
return [] return []
elif not isinstance(self.vars_files, list):
return [self.vars_files]
return self.vars_files return self.vars_files
def get_handlers(self): def get_handlers(self):