File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
server/src/main/java/com/cloud/configuration Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1031,6 +1031,10 @@ public Configuration updateConfiguration(final UpdateCfgCmd cmd) throws InvalidP
10311031 category = config .getCategory ();
10321032 }
10331033
1034+ if (value == null ) {
1035+ throw new InvalidParameterValueException (String .format ("The new value for the [%s] configuration must be given." , name ));
1036+ }
1037+
10341038 validateIpAddressRelatedConfigValues (name , value );
10351039 validateConflictingConfigValue (name , value );
10361040
@@ -1039,10 +1043,6 @@ public Configuration updateConfiguration(final UpdateCfgCmd cmd) throws InvalidP
10391043 throw new CloudRuntimeException ("Only Root Admin is allowed to edit this configuration." );
10401044 }
10411045
1042- if (value == null ) {
1043- return _configDao .findByName (name );
1044- }
1045-
10461046 ConfigKey .Scope scope = null ;
10471047 Long id = null ;
10481048 int paramCountCheck = 0 ;
You can’t perform that action at this time.
0 commit comments