File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
marklogic-data-hub/src/main/java/com/marklogic/hub/deploy/commands Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2626
2727import java .io .File ;
2828import java .io .IOException ;
29+ import java .util .Iterator ;
2930
3031/**
3132 * Extends ml-app-deployer's standard command for deploying a single database and adds DHF-specific functionality.
@@ -78,6 +79,11 @@ protected String getPayload(CommandContext context) {
7879 ObjectNode payloadNode = (ObjectNode ) ObjectMapperFactory .getObjectMapper ().readTree (payload );
7980 payloadNode = mergePayloadWithEntityConfigFileIfItExists (payloadNode );
8081 removeSchemaAndTriggersDatabaseSettingsInAProvisionedEnvironment (payloadNode );
82+
83+ // language is somehow being added in a test; not sure how, but strip it out if it exists
84+ if (payloadNode .has ("language" )) {
85+ payloadNode .remove ("language" );
86+ }
8187 return payloadNode .toString ();
8288 } catch (IOException e ) {
8389 throw new DataHubConfigurationException (e );
You can’t perform that action at this time.
0 commit comments