Skip to content

How to loop list in a Yaml data source #1845

Answered by hairyhenderson
ffsetit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ffsetit, that error is a YAML parsing error. YAML like this is invalid:

primary: us-east1
  abbr: use1

The problem is that it's interpreting us-east1 as a scalar (string) value for the key primary, but it seems you're also trying to assign an object value (abbr: use1).

You'll need to fix the YAML first. I would suggest something like:

primary:
  name: us-east1
  abbr: use1

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ffsetit
Comment options

@ffsetit
Comment options

@hairyhenderson
Comment options

Answer selected by ffsetit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants