Skip to content

Commit

Permalink
fix trageted input (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner authored Dec 26, 2024
1 parent 739b6bc commit a085a22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/resolver/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export default class Validator {
* Required Constraint: input is required if not targeted by any dependency
*/
if (!this.isTargeted(name, inputs)) {
this.minisat.require(name)
const value =
this.inputs[name] ??
this.graph.serviceTemplate.topology_template?.variability?.inputs?.[name]?.default
assert.isDefined(value, `Variability input "${name}" is not targeted and not assigned`)
}

/**
Expand Down

0 comments on commit a085a22

Please sign in to comment.