Skip to content

Commit

Permalink
Add revision to full agent config output
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Mar 10, 2020
1 parent fb7d5cf commit b68e0ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const storedDatasourceToAgentDatasource = (
namespace,
enabled,
use_output: DEFAULT_OUTPUT.name, // TODO: hardcoded to default output for now
package: undefined,
inputs: inputs
.filter(input => input.enabled)
.map(input => ({
Expand Down Expand Up @@ -46,8 +45,6 @@ export const storedDatasourceToAgentDatasource = (
name: pkg.name,
version: pkg.version,
};
} else {
delete fullDatasource.package;
}

return fullDatasource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ export interface FullAgentConfig {
};
};
datasources: FullAgentConfigDatasource[];
revision?: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class AgentConfigService {
datasources: (config.datasources as Datasource[]).map(ds =>
storedDatasourceToAgentDatasource(ds)
),
revision: config.revision,
};

return agentConfig;
Expand Down

0 comments on commit b68e0ab

Please sign in to comment.