Fix misuse of is not
testing a string.
This commit is contained in:
parent
ea0e2bf2b3
commit
1a4163cb88
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ class NetAppONTAPNVMESubsystem(object):
|
||||||
current = self.get_subsystem()
|
current = self.get_subsystem()
|
||||||
add_host_map, remove_host_map = dict(), dict()
|
add_host_map, remove_host_map = dict(), dict()
|
||||||
cd_action = self.na_helper.get_cd_action(current, self.parameters)
|
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)
|
add_host_map, remove_host_map = self.associate_host_map(types)
|
||||||
if self.na_helper.changed:
|
if self.na_helper.changed:
|
||||||
if self.module.check_mode:
|
if self.module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue