#NEWLINE# def __init__( self , hostname , docker_client = None , network = None , node_uuid = None ) : #NEWLINE# #INDENT# if ( node_uuid is None ) : #NEWLINE# #INDENT# warn ( "UUID is required, this is for backwards compat with existing tests only. If you see this in production code that's a bug." , DeprecationWarning , stacklevel = 2 ) #NEWLINE# node_uuid = ip_to_uuid ( hostname ) #NEWLINE# #UNINDENT# self . node_uuid = node_uuid #NEWLINE# self . hostname = hostname #NEWLINE# if ( docker_client is None ) : #NEWLINE# #INDENT# docker_client = DockerClient ( ) #NEWLINE# #UNINDENT# self . docker_client = docker_client #NEWLINE# if ( network is None ) : #NEWLINE# #INDENT# network = make_host_network ( ) #NEWLINE# #UNINDENT# self . network = network