This change fixes the incorrect stats reported
for compression and deduplication by NetApp
iscsi and nfs backend.
Change-Id: I3e97d953b3ea2231c3eb1f950b0ca6705b3b2286
Closes-Bug:#
1236839
if len(self.ssc_vols['all']) > len(self.ssc_vols['dedup'])\
else 'false'
data['netapp_compression'] = 'true'\
- if self.ssc_vols['compression'] else False
+ if self.ssc_vols['compression'] else 'false'
data['netapp_nocompression'] = 'true'\
if len(self.ssc_vols['all']) >\
len(self.ssc_vols['compression'])\
if len(self.ssc_vols['all']) >\
len(self.ssc_vols['dedup']) else 'false'
data['netapp_compression'] = 'true'\
- if self.ssc_vols['compression'] else False
+ if self.ssc_vols['compression'] else 'false'
data['netapp_nocompression'] = 'true'\
if len(self.ssc_vols['all']) >\
len(self.ssc_vols['compression']) else 'false'
path = sis.get_child_content('path')
if not path:
continue
- (vol, __, ___) = path.rpartition('/')
+ (___, __, vol) = path.rpartition('/')
if not vol:
continue
v_sis = {}