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 @@ -1043,6 +1043,10 @@ public Configuration updateConfiguration(final UpdateCfgCmd cmd) throws InvalidP
10431043 category = config .getCategory ();
10441044 }
10451045
1046+ if (value == null ) {
1047+ throw new InvalidParameterValueException (String .format ("The new value for the [%s] configuration must be given." , name ));
1048+ }
1049+
10461050 validateIpAddressRelatedConfigValues (name , value );
10471051 validateConflictingConfigValue (name , value );
10481052
@@ -1051,10 +1055,6 @@ public Configuration updateConfiguration(final UpdateCfgCmd cmd) throws InvalidP
10511055 throw new CloudRuntimeException ("Only Root Admin is allowed to edit this configuration." );
10521056 }
10531057
1054- if (value == null ) {
1055- return _configDao .findByName (name );
1056- }
1057-
10581058 ConfigKey .Scope scope = null ;
10591059 Long id = null ;
10601060 int paramCountCheck = 0 ;
You can’t perform that action at this time.
0 commit comments