'Change out to our secondary credentials
Or back to our primary creds.
:return: True if swapped. False if no alt credentials supplied.'

def _swap_credentials(self):

    if (self.san_ip == self.config.san_ip):
        if (self.config.secondary_san_ip and self.config.secondary_san_login and self.config.secondary_san_password):
            self.san_ip = self.config.secondary_san_ip
            self.san_login = self.config.secondary_san_login
            self.san_password = self.config.secondary_san_password
        else:
            LOG.info('Swapping    DSM    credentials:    Secondary    DSM    credentials    are    not    set    or    are    incomplete.')
            return False
        if self.config.secondary_sc_api_port:
            self.san_port = self.config.secondary_sc_api_port
    else:
        self.san_ip = self.config.san_ip
        self.san_login = self.config.san_login
        self.san_password = self.config.san_password
        self.san_port = self.config.dell_sc_api_port
    LOG.info('Swapping    DSM    credentials:    New    DSM    IP    is    %r.', self.san_ip)
    return True
