novajoin/ipa.py
def __get_connection(self):
        """Make a connection to IPA or raise an error."""
        tries = 0

        while tries <= self.ntries:
            try:
                api.Backend.rpcclient.connect()
            except (errors.CCacheError, errors.TicketExpired) as e:
                LOG.debug("kinit again: %s", e)
                # pylint: disable=no-member
                kinit_keytab(str('nova/%s@%s' %
                             (api.env.host, api.env.realm)),
                             CONF.keytab,
                             self.ccache)
                tries += 1
            else:
                return
Make a connection to IPA or raise an error.
Make a connection to IPA or raise an error.
Make a connection to IPA or raise an error .
def __get_connection(self):
        tries = 0
        while tries <= self.ntries:
            try:
                api.Backend.rpcclient.connect()
            except (errors.CCacheError, errors.TicketExpired) as e:
                LOG.debug("kinit again: %s", e)
                kinit_keytab(str('nova/%s@%s' %
                             (api.env.host, api.env.realm)),
                             CONF.keytab,
                             self.ccache)
                tries += 1
            else:
                return
def __get_connection ( self ) : tries = 0 while tries <= self . ntries : try : api . Backend . rpcclient . connect ( ) except ( errors . CCacheError , errors . TicketExpired ) as e : LOG . debug ( "kinit again: %s" , e ) kinit_keytab ( str ( 'nova/%s@%s' % ( api . env . host , api . env . realm ) ) , CONF . keytab , self . ccache ) tries += 1 else : return
Make a connection to IPA or raise an error.
Make a connection to IPA or raise an error .
"""Make a connection to IPA or raise an error.""" # pylint: disable=no-member
self