fixes issue with net_template failing unless src argument provided. (#17726)
This fixes an issue where the net_template action will fail if a non required argument (src) is not provided. fixes ansible/ansible-modules-core#4978
This commit is contained in:
parent
4c9ed1f4fb
commit
b5b8a756fc
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ class ActionModule(ActionBase):
|
|||
|
||||
def _handle_template(self):
|
||||
src = self._task.args.get('src')
|
||||
if not src:
|
||||
return
|
||||
|
||||
working_path = self._get_working_path()
|
||||
|
||||
if os.path.isabs(src) or urlparse.urlsplit('src').scheme:
|
||||
|
|
Loading…
Reference in a new issue