#NEWLINE# def libvirt_connect( self ) : #NEWLINE# #INDENT# open_flags = 0 #NEWLINE# valid_auth_options = [ libvirt . VIR_CRED_AUTHNAME , libvirt . VIR_CRED_NOECHOPROMPT ] #NEWLINE# authcb = None #NEWLINE# authcb_data = None #NEWLINE# uri = ( 'hyperv://%s@%s/?transport=http' % ( self . hostinfo . get ( 'username' ) , self . hostinfo . get ( 'api_server' ) ) ) #NEWLINE# self . connection = libvirt . openAuth ( uri , [ valid_auth_options , authcb , authcb_data ] , uri )