normalize error message on src != dir when local

now action plugin returns same error as module
pull/14290/head
Brian Coca 9 years ago
parent d7a6ccc4c2
commit 48b20684f2

@ -109,6 +109,11 @@ class ActionModule(ActionBase):
if regexp is not None: if regexp is not None:
_re = re.compile(regexp) _re = re.compile(regexp)
if not os.path.isdir(src):
result['failed'] = True
result['msg'] = "Source (%s) is not a directory" % src
return result
# Does all work assembling the file # Does all work assembling the file
path = self._assemble_from_fragments(src, delimiter, _re, ignore_hidden) path = self._assemble_from_fragments(src, delimiter, _re, ignore_hidden)

Loading…
Cancel
Save