1
0
Fork 0
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:
Elad Alfassa 2018-01-17 23:32:54 +02:00 committed by ansibot
parent 9a32f5c889
commit ea1361a927

View file

@ -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