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.