def _get_server(vm_, volumes, nics):
 vm_size = _override_size(vm_)
 availability_zone = config.get_cloud_config_value('availability_zone', vm_, __opts__, default=None, search_global=False)
 cpu_family = config.get_cloud_config_value('cpu_family', vm_, __opts__, default=None, search_global=False)
 return Server(name=vm_['name'], ram=vm_size['ram'], availability_zone=availability_zone, cores=vm_size['cores'], cpu_family=cpu_family, create_volumes=volumes, nics=nics)

def _get_server ( vm_ , volumes , nics ) : vm_size = _override_size ( vm_ ) availability_zone = config . get_cloud_config_value ( 'availability_zone' , vm_ , __opts__ , default = None , search_global = False ) cpu_family = config . get_cloud_config_value ( 'cpu_family' , vm_ , __opts__ , default = None , search_global = False ) return Server ( name = vm_ [ 'name' ] , ram = vm_size [ 'ram' ] , availability_zone = availability_zone , cores = vm_size [ 'cores' ] , cpu_family = cpu_family , create_volumes = volumes , nics = nics )
construct server instance from cloud profile config .