mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
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:
parent
27ce69fd55
commit
fac22936f6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user