File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
core/src/main/java/com/sequenceiq/cloudbreak/converter Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1313import com .google .common .base .Strings ;
1414import com .sequenceiq .cloudbreak .api .model .RDSConfigRequest ;
1515import com .sequenceiq .cloudbreak .api .model .RdsConfigPropertyJson ;
16- import com .sequenceiq .cloudbreak .common .type .APIResourceType ;
1716import com .sequenceiq .cloudbreak .api .model .RdsType ;
1817import com .sequenceiq .cloudbreak .api .model .ResourceStatus ;
18+ import com .sequenceiq .cloudbreak .common .type .APIResourceType ;
1919import com .sequenceiq .cloudbreak .domain .RDSConfig ;
2020import com .sequenceiq .cloudbreak .domain .json .Json ;
2121import com .sequenceiq .cloudbreak .service .MissingResourceNameGenerator ;
@@ -43,8 +43,9 @@ public RDSConfig convert(RDSConfigRequest source) {
4343 rdsConfig .setHdpVersion (source .getHdpVersion ());
4444 rdsConfig .setType (source .getType () == null ? RdsType .HIVE : source .getType ());
4545 try {
46- Json json = new Json (convertPropertiesToJson (source .getProperties ()));
47- rdsConfig .setAttributes (source .getProperties () == null ? new Json (new HashMap <>()) : json );
46+ Json json = source .getProperties () == null ? new Json (new HashMap <>())
47+ : new Json (convertPropertiesToJson (source .getProperties ()));
48+ rdsConfig .setAttributes (json );
4849 } catch (JsonProcessingException ignored ) {
4950 rdsConfig .setAttributes (null );
5051 }
You can’t perform that action at this time.
0 commit comments