novajoin/ipa.py
def _call_ipa(self, command, *args, **kw):
        """Make an IPA call.

           Try twice to run the command. One execution may fail if we
           previously had a connection but the ticket expired.
        """

        if not api.Backend.rpcclient.isconnected():
            self.__get_connection()
        if 'version' not in kw:
            kw['version'] = u'2.146'  # IPA v4.2.0 for compatibility
        try:
            api.Command[command](*args, **kw)
        except (errors.CCacheError, errors.TicketExpired):
            LOG.debug("Refresh authentication")
            api.Backend.rpcclient.disconnect()
            self.__get_connection()
            api.Command[command](*args, **kw)
Make an IPA call.

           Try twice to run the command. One execution may fail if we
           previously had a connection but the ticket expired.
        
Make an IPA call.
Try twice to run the command. One execution may fail if we
previously had a connection but the ticket expired.
Make an IPA call . Try twice to run the command . One execution may fail if we previously had a connection but the ticket expired .
def _call_ipa(self, command, *args, **kw):
        if not api.Backend.rpcclient.isconnected():
            self.__get_connection()
        if 'version' not in kw:
            kw['version'] = u'2.146'  
        try:
            api.Command[command](*args, **kw)
        except (errors.CCacheError, errors.TicketExpired):
            LOG.debug("Refresh authentication")
            api.Backend.rpcclient.disconnect()
            self.__get_connection()
            api.Command[command](*args, **kw)
def _call_ipa ( self , command , * args , ** kw ) : if not api . Backend . rpcclient . isconnected ( ) : self . __get_connection ( ) if 'version' not in kw : kw [ 'version' ] = u'2.146' try : api . Command [ command ] ( * args , ** kw ) except ( errors . CCacheError , errors . TicketExpired ) : LOG . debug ( "Refresh authentication" ) api . Backend . rpcclient . disconnect ( ) self . __get_connection ( ) api . Command [ command ] ( * args , ** kw )
Make an IPA call.
Make an IPA call .
"""Make an IPA call.

           Try twice to run the command. One execution may fail if we
           previously had a connection but the ticket expired.
        """ # IPA v4.2.0 for compatibility
self
command