mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #17521 from privateip/fix-4797
raise exception when src file is not found in net_config
This commit is contained in:
@@ -95,7 +95,7 @@ class ActionModule(ActionBase):
|
||||
source = self._loader.path_dwim_relative(working_path, src)
|
||||
|
||||
if not os.path.exists(source):
|
||||
return
|
||||
raise ValueError('path specified in src not found')
|
||||
|
||||
try:
|
||||
with open(source, 'r') as f:
|
||||
|
||||
Reference in New Issue
Block a user