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/4420/head
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…
Reference in New Issue