
if flavor's swap is not set (or 0),nova returns empty string [0] rather than 0 when query flavor spec. this behavior will break the idempotent of the ansible deployment. this ps changes the empty string to 0 before compare them. [0]: https://docs.openstack.org/api-ref/compute/?expanded=list-flavors-detail,list-flavors-with-details-detail#list-flavors-with-details Change-Id: I041cbcc0432051d795e2c3f0e7ac7378e1970008