turbot / pipe-fittings

Shared components for use across pipe projects.
https://github.com/turbot
GNU Affero General Public License v3.0
12 stars 4 forks source link

If a mod dependency has variables and the parent mod passes them through `args`, the values aren't recognized #18

Closed cbruno10 closed 10 months ago

cbruno10 commented 11 months ago

For instance, if I have a mod that uses the Slack mod (https://github.com/turbot/flowpipe-mod-github-integrations/blob/2ec63ef40ef210b0697fe0f8eb9556fef04d5d30/mod.hcl#L24-L30C6) and passes args through, I need to set defaults (https://github.com/turbot/flowpipe-mod-slack/blob/staging/variables.hcl#L4) otherwise Flowpipe will say those variables aren't set.

Subhajit97 commented 10 months ago

@cbruno10 Steampipe behaves in the same way. If you pass a variable from a parent mod to its child through the args, you must also define the variable in the child with a default value. If the value is passed from the parent, it will override the default value.