Skip to content

Commit 7625ea2

Browse files
committed
[core] Pass any var odc_<varname> to ODC except known named params
1 parent 7934208 commit 7625ea2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/integration/odc/plugin.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ func (p *Plugin) ObjectStack(data interface{}) (stack map[string]interface{}) {
186186
// FIXME: this only copies over vars prefixed with "odc_"
187187
// Figure out a better way!
188188
for k, v := range varStack {
189-
if strings.HasPrefix(k, "odc_") {
189+
if strings.HasPrefix(k, "odc_") &&
190+
k != "odc_enabled" &&
191+
k != "odc_resources" &&
192+
k != "odc_plugin" &&
193+
k != "odc_topology" {
190194
arguments[strings.TrimPrefix(k, "odc_")] = v
191195
}
192196
}

0 commit comments

Comments
 (0)