False is a legitimate value for the rotational setting and should be included in the JSON output, only None should be ignored.
Fixes: http://tracker.ceph.com/issues/49014
Fixes: cd6a488ab2ca036dd4fb36751b938f605e97e1c8
Signed-off-by: Lukas Stockner <lstockner@genesiscloud.com>
(cherry picked from commit
c32f6f5448e51d3196f7a2644ea97ecd22a04f92)
ret['vendor'] = self.vendor
if self.size:
ret['size'] = self.size
- if self.rotational:
+ if self.rotational is not None:
ret['rotational'] = self.rotational
if self.limit:
ret['limit'] = self.limit