'Return whether or not compression is enabled for this system.'

def compression_enabled(self):

    resp = self.ssh.lslicense()
    keys = ['license_compression_enclosures', 'license_compression_capacity']
    for key in keys:
        if (resp.get(key, '0') != '0'):
            return True
    try:
        resp = self.ssh.lsguicapabilities()
        if (resp.get('license_scheme', '0') == '9846'):
            return True
    except exception.VolumeBackendAPIException:
        LOG.exception('Failed    to    fetch    licensing    scheme.')
    return False
