Skip to content

Commit

Permalink
Issue #374: Add the possibility to add default connector variables
Browse files Browse the repository at this point in the history
* Minor changes.
  • Loading branch information
CherfaElyes committed Sep 24, 2024
1 parent 0d8b2de commit ec13ede
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down Expand Up @@ -82,5 +83,5 @@ public class ConnectorIdentity implements Serializable {
/**
* The connector default variables that can be specified.
*/
private Map<String, ConnectorDefaultVariable> variables;
private final Map<String, ConnectorDefaultVariable> variables = new HashMap<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ private String getVariable(final Object[] args) {
return connectorVariables.getVariableValues().get(variableName);
}
return sourceProcessor
.getTelemetryManager()
.getConnectorStore()
.getStore()
.get(connectorId)
.getConnectorIdentity()
.getVariables()
.get(variableName)
.getDefaultValue();
.getTelemetryManager()
.getConnectorStore()
.getStore()
.get(connectorId)
.getConnectorIdentity()
.getVariables()
.get(variableName)
.getDefaultValue();
}
}

0 comments on commit ec13ede

Please sign in to comment.