You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1004ddb
Browse filesBrowse the repository at this point in the historyBrowse files
if (!_networkModel.areServicesSupportedInNetwork(network.getId(), newService[]{Service.UserData})) {
4050
4050
if ((userData != null) && (!userData.isEmpty())) {
4051
-
thrownewInvalidParameterValueException("Unable to deploy VM as UserData is provided while deploying the VM, but there is no support for " + Service.UserData.getName() + " service in the default network " + network.getId());
4051
+
throwInvalidParemeterExceptionForNet(network, "Unable to deploy VM as UserData is provided while deploying the VM");
4052
4052
}
4053
4053
4054
4054
if ((sshPublicKeys != null) && (!sshPublicKeys.isEmpty())) {
4055
-
thrownewInvalidParameterValueException("Unable to deploy VM as SSH keypair is provided while deploying the VM, but there is no support for " + Service.UserData.getName() + " service in the default network " + network.getId());
4055
+
throwInvalidParemeterExceptionForNet(network, "Unable to deploy VM as SSH keypair is provided while deploying the VM");
4056
4056
}
4057
4057
4058
4058
if (template.isEnablePassword()) {
4059
-
thrownewInvalidParameterValueException("Unable to deploy VM as template " + template.getId() + " is password enabled, but there is no support for " + Service.UserData.getName() + " service in the default network " + network.getId());
4059
+
throwInvalidParemeterExceptionForNet(network, String.format("Unable to deploy VM as template %d is password enabled", template.getId()));
0 commit comments