diff --git a/lib/ansible/modules/storage/netapp/na_ontap_motd.py b/lib/ansible/modules/storage/netapp/na_ontap_motd.py index 8783c907c9a..bdc83ff7d30 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'] = ''