Skip to content

Commit

Permalink
Merge pull request #64 from sentrysoftware/feature/issue-63-display-t…
Browse files Browse the repository at this point in the history
…he-new-additional-connectors-configuration

Issue #63: Display the new additional connectors configuration
  • Loading branch information
NassimBtk authored Oct 22, 2024
2 parents bab503e + 6290d71 commit 5857d1b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,18 @@ private void produceMetricsHubExamplesContent(

// Connector variable
if (connectorVariables != null && !connectorVariables.isEmpty()) {
yamlBuilder.append(" variables:\n");
yamlBuilder.append(" additionalConnectors:\n");
yamlBuilder.append(" " + connectorId);
yamlBuilder.append(": # Unique ID. Use 'uses' if different from the original connector ID\n");
yamlBuilder.append(" uses: " + connectorId);
yamlBuilder.append(" # Optional - Original ID if not in key\n");
yamlBuilder.append(" force: true");
yamlBuilder.append(" # Optional (default: true); false for auto-detection only\n");
yamlBuilder.append(" variables:\n");
connectorVariables
.iterator()
.forEachRemaining(variable -> {
yamlBuilder.append(String.format(" %s: %s", variable, "<VALUE>"));
yamlBuilder.append(String.format(" %s: %s", variable, "<VALUE>"));
yamlBuilder.append(" # Replace with desired value.\n");
});
}
Expand Down

0 comments on commit 5857d1b

Please sign in to comment.