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.
pull/35018/head
Elad Alfassa 7 years ago committed by ansibot
parent 9a32f5c889
commit ea1361a927

@ -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…
Cancel
Save