mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 20:02:45 +00:00
modules/na_cdot_lun: properly compare LUN size (#34846)
current_size is returned from the API as string, while self.size (the requested size) is an integer. This caused the comparison to always be False, and a resize request to always be sent.
This commit is contained in:
@@ -331,7 +331,7 @@ class NetAppCDOTLUN(object):
|
||||
property_changed = True
|
||||
|
||||
elif self.state == 'present':
|
||||
if not current_size == self.size:
|
||||
if not int(current_size) == self.size:
|
||||
size_changed = True
|
||||
property_changed = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user