#NEWLINE# @ synchronized ( 'daemon-client-lock' ) #NEWLINE# def _get_client( cls , rootwrap_config ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return cls . _clients [ cls ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# from oslo_rootwrap import client #NEWLINE# new_client = client . Client ( [ 'sudo' , 'nova-rootwrap-daemon' , rootwrap_config ] ) #NEWLINE# cls . _clients [ rootwrap_config ] = new_client #NEWLINE# return new_client