def get_capabilities(self, context, discover):
    'Get capabilities of backend storage.'
    if discover:
        self.driver.init_capabilities()
    capabilities = self.driver.capabilities
    LOG.debug('Obtained capabilities list: %s.', capabilities)
    return capabilities
Get capabilities of backend storage.
def get_capabilities(self, context, discover):
    
    if discover:
        self.driver.init_capabilities()
    capabilities = self.driver.capabilities
    LOG.debug('Obtained capabilities list: %s.', capabilities)
    return capabilities