Backport to fix missing initializing changed in net_get (#74805)

* Fixes #74802

Signed-off-by: Hideki Saito <saito@fgrep.org>
pull/74992/head
Hideki Saito 5 years ago committed by GitHub
parent 88eb0f1dfb
commit c49092fd29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
---
bugfixes:
- Backport to fix missing ``changed`` in net_get (https://github.com/ansible/ansible/issues/74802)

@ -36,6 +36,7 @@ display = Display()
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
changed = False
socket_path = None
network_os = self._get_network_os(task_vars)
persistent_connection = self._play_context.connection.split('.')[-1]

Loading…
Cancel
Save