'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
