Skip to content

Commit

Permalink
Fix the PropertyList fallback code bool handling
Browse files Browse the repository at this point in the history
booleans are stored as YAML boolean so there is no processing
to be done.
  • Loading branch information
timj committed May 6, 2022
1 parent 323c8dd commit 31f72d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/astro_metadata_translator/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def pl_constructor(loader: yaml.Loader, node: yaml.Node) -> Any:
elif dtype == "Int":
pl[key] = int(value)
elif dtype == "Bool":
pl[key] = True if value == "true" else False
pl[key] = value
else:
pl[key] = value

Expand Down

0 comments on commit 31f72d9

Please sign in to comment.