X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d545185124c10e9c58d954d12103d6620e201d2..d92bb5e90dbe8bd7eead32aba6941a4341fcf204:/src/simix/smx_vm.c diff --git a/src/simix/smx_vm.c b/src/simix/smx_vm.c index 29c48b9144..f060683b01 100644 --- a/src/simix/smx_vm.c +++ b/src/simix/smx_vm.c @@ -25,12 +25,12 @@ sg_host_t SIMIX_vm_create(const char *name, sg_host_t ind_phys_host) /* Create surf associated resource */ surf_vm_model_create(name, ind_phys_host); - sg_host_t smx_host = SIMIX_host_create(name, NULL); + SIMIX_host_create(name); /* We will be able to register the VM to its physical host, so that we can promptly * retrieve the list VMs on the physical host. */ - return smx_host; + return SIMIX_host_get_by_name(name); }