mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
9a32f5c889
commit
ea1361a927
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue