CLOUDSTACK-4979: if no hostName is passed to deployVm call, automatically generated hostName follows the pattern <instance.id global config>-<randomly generated uuid>.

Example: VM-a6c6457e-e4d0-486f-a392-9239be9b36f5
This commit is contained in:
Alena Prokharchyk 2013-11-06 15:44:55 -08:00
parent 27ce69fd55
commit fac22936f6

View File

@ -2749,7 +2749,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
}
} else {
if (hostName == null) {
hostName = uuidName;
//Generate name using uuid and instance.name global config
hostName = _configDao.getValue(Config.InstanceName.key()) + "-" + uuidName;
}
}