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
pull/17923/head
Peter Sprygada 8 years ago committed by GitHub
parent 4c9ed1f4fb
commit b5b8a756fc

@ -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…
Cancel
Save