Skip to content

Commit

Permalink
fixed variable file parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
06chaynes committed Nov 2, 2023
1 parent e2061e6 commit 8382abe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tfct/src/cli/command/variable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ pub(crate) async fn parse_variable_file(
if let Some(var) = variable_entry.var {
let variable = Variable::from_str(&var)?;
variables.push(variable);
} else if let Some(attributes) = variable_entry.attributes {
let variable = Variable {
relationship_type: "vars".to_string(),
id: variable_entry.id,
attributes,
};
variables.push(variable);
}
}
}
Expand Down

0 comments on commit 8382abe

Please sign in to comment.