Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong dictionary access #170

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

oleorhagen
Copy link
Contributor

No description provided.

The dictionary is accessed, expecting a None on non-existing keys, but
mistakenly uses the `[]` bracket syntax for indexing, as opposed to `.get` which
will return `None` on non-existing keys.

Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
@olehermanse olehermanse merged commit e67b3bf into cfengine:master Jan 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants