From c582e89f45f35a504dfe1ccf0e302ad7b1ff6b6c Mon Sep 17 00:00:00 2001 From: Chris Archibald Date: Wed, 10 Apr 2019 12:37:16 -0700 Subject: [PATCH] add missing ems logs (#54813) * add missing ems logs * fix issue --- lib/ansible/modules/storage/netapp/na_ontap_motd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/storage/netapp/na_ontap_motd.py b/lib/ansible/modules/storage/netapp/na_ontap_motd.py index 8783c907c9..bdc83ff7d3 100644 --- a/lib/ansible/modules/storage/netapp/na_ontap_motd.py +++ b/lib/ansible/modules/storage/netapp/na_ontap_motd.py @@ -127,6 +127,9 @@ class CDotMotd(object): return api_call def commit_changes(self): + results = netapp_utils.get_cserver(self.server) + cserver = netapp_utils.setup_na_ontap_zapi(module=self.module, vserver=results) + netapp_utils.ems_log_event("na_ontap_motd", cserver) if self.parameters['state'] == 'absent': # Just make sure it is empty self.parameters['message'] = ''