From 5192d9900e5e20d204f410e2d8031b5ff02edffa Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 26 Oct 2017 12:58:46 -0700 Subject: [PATCH] Support file extension in playbook path This allows us to specify the full playbook name, with file extension. A documentation update is included in a following patch, as well as a deprecation notice for the old form. Change-Id: I19a3ec50e473f717a7e5e2824f702ad4e6acab02 --- zuul/executor/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuul/executor/server.py b/zuul/executor/server.py index 674fc80eb5..82e7bf4b09 100644 --- a/zuul/executor/server.py +++ b/zuul/executor/server.py @@ -936,7 +936,7 @@ class AnsibleJob(object): "non-trusted repo." % (entry, path)) def findPlaybook(self, path, required=False, trusted=False): - for ext in ['.yaml', '.yml']: + for ext in ['', '.yaml', '.yml']: fn = path + ext if os.path.exists(fn): if not trusted: