executor: properly format error exception

Exception doesn't format string automatically.

Change-Id: Iab057490966441d2e9f6792534743a0c8f3e8a86
This commit is contained in:
Tristan Cacqueray 2019-01-15 10:37:56 +00:00
parent 691b1bc17c
commit a44a9bef38
1 changed files with 1 additions and 1 deletions

View File

@ -1537,7 +1537,7 @@ class AnsibleJob(object):
link = os.path.join(root, name)
link = os.path.realpath(link)
if not link.startswith(os.path.realpath(root)):
raise ExecutorError("Invalid role name %s", name)
raise ExecutorError("Invalid role name %s" % name)
os.symlink(path, link)
try: