File tree Expand file tree Collapse file tree
framework/config/src/org/apache/cloudstack/framework/config/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import javax .inject .Inject ;
2626
2727import org .apache .log4j .Logger ;
28-
2928import org .apache .cloudstack .framework .config .ConfigDepot ;
3029import org .apache .cloudstack .framework .config .ConfigDepotAdmin ;
3130import org .apache .cloudstack .framework .config .ConfigKey ;
3231import org .apache .cloudstack .framework .config .Configurable ;
3332import org .apache .cloudstack .framework .config .ScopedConfigStorage ;
3433import org .apache .cloudstack .framework .config .dao .ConfigurationDao ;
34+ import org .apache .commons .lang .ObjectUtils ;
3535
3636import com .cloud .utils .Pair ;
3737import com .cloud .utils .component .SystemIntegrityChecker ;
@@ -97,10 +97,8 @@ public void populateConfigurations() {
9797 _configDao .persist (vo );
9898 } else {
9999 if (vo .isDynamic () != key .isDynamic () ||
100- !vo .getDescription ().equals (key .description ()) ||
101- ((vo .getDefaultValue () != null && key .defaultValue () == null ) ||
102- (vo .getDefaultValue () == null && key .defaultValue () != null ) ||
103- !vo .getDefaultValue ().equals (key .defaultValue ()))) {
100+ !ObjectUtils .equals (vo .getDescription (), vo .getDescription ()) ||
101+ !ObjectUtils .equals (vo .getDefaultValue (), key .defaultValue ())) {
104102 vo .setDynamic (key .isDynamic ());
105103 vo .setDescription (key .description ());
106104 vo .setDefaultValue (key .defaultValue ());
You can’t perform that action at this time.
0 commit comments