Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Fix for YAML list lab (issue #98) #109

Merged
merged 2 commits into from
Oct 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lessons/lesson-14/stage1/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ yamlList = yaml.load(yamlFile)
```
<button type="button" class="btn btn-primary btn-sm" onclick="runSnippetInTab('linux1', 1)">Run this snippet</button>

At this point, `yamlDict` is a Python dictionary that contains the key-value pairs that were in our YAML file. We can start by checking this dictionary's length:
At this point, `yamlList` is a Python list that contains values (in this case, strings) that were in our YAML file. We can start by checking this list's length:

```
print("There are %d values in this YAML file" % len(yamlList))
Expand Down
8 changes: 4 additions & 4 deletions lessons/lesson-14/stage1/list.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
vendor: Juniper
family: QFX
model: 10k
osversion: 15.1X53-D60.4
- Juniper QFX
- Juniper MX
- Juniper EX
- Juniper SRX