'Checks whether cluster-scoped credentials are being used or not.'

def check_for_cluster_credentials(self):

    try:
        self.list_cluster_nodes()
        return True
    except netapp_api.NaApiError as e:
        if (e.code == netapp_api.EAPINOTFOUND):
            LOG.debug('Not    connected    to    cluster    management    LIF.')
        else:
            with excutils.save_and_reraise_exception():
                LOG.exception('Failed    to    get    the    list    of    nodes.')
        return False
