From 1a4163cb882eb076843eed3e9044bfaa8e7d6091 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 13 Feb 2019 14:49:54 -0800 Subject: [PATCH] Fix misuse of `is not` testing a string. --- lib/ansible/modules/storage/netapp/na_ontap_nvme_subsystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/storage/netapp/na_ontap_nvme_subsystem.py b/lib/ansible/modules/storage/netapp/na_ontap_nvme_subsystem.py index 85dbe7923c..0c6316749a 100644 --- a/lib/ansible/modules/storage/netapp/na_ontap_nvme_subsystem.py +++ b/lib/ansible/modules/storage/netapp/na_ontap_nvme_subsystem.py @@ -326,7 +326,7 @@ class NetAppONTAPNVMESubsystem(object): current = self.get_subsystem() add_host_map, remove_host_map = dict(), dict() cd_action = self.na_helper.get_cd_action(current, self.parameters) - if cd_action is not 'delete' and self.parameters['state'] == 'present': + if cd_action != 'delete' and self.parameters['state'] == 'present': add_host_map, remove_host_map = self.associate_host_map(types) if self.na_helper.changed: if self.module.check_mode: