Merge pull request #17521 from privateip/fix-4797

raise exception when src file is not found in net_config
This commit is contained in:
Peter Sprygada 2016-09-12 13:40:01 -04:00 committed by GitHub
commit cc45506006

View file

@ -95,7 +95,7 @@ class ActionModule(ActionBase):
source = self._loader.path_dwim_relative(working_path, src) source = self._loader.path_dwim_relative(working_path, src)
if not os.path.exists(source): if not os.path.exists(source):
return raise ValueError('path specified in src not found')
try: try:
with open(source, 'r') as f: with open(source, 'r') as f: