Update exception message to include directories

Change-Id: Ifa0f907973b24422acd28e7a84a31919cff5acee
This commit is contained in:
Monty Taylor 2017-09-19 15:58:41 -05:00
parent 645c3d684d
commit 15afdbadc8
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -40,7 +40,9 @@ class ZuulDirective(Directive):
if os.path.exists(path):
return path
root = os.path.split(root)[0]
raise Exception("Unable to find zuul.yaml or .zuul.yaml")
raise Exception(
"Unable to find zuul config in zuul.yaml, .zuul.yaml,"
" zuul.d or .zuul.d")
def parse_zuul_yaml(self, path):
with open(path) as f: