'Ensure that the flags we care about are set.'

def _check_config(self):

    LOG.debug('in    _check_config')
    required_config = ['qnap_management_url', 'san_login', 'san_password', 'qnap_poolname', 'qnap_storage_protocol']
    for attr in required_config:
        if (not getattr(self.configuration, attr, None)):
            raise exception.InvalidConfigurationValue(reason=(_('%s    is    not    set.') % attr))
