I am trying to read .yaml file but getting "found unhashable key" error. Sample code and .yaml is mentioned below for reference
test.py
file_path = "test.yaml"
try:
with open(file_path) as file:
res = yaml.safe_load(file)
except Exception as e:
print("e",e)
test.yaml
jobs:
- job: CLEANUP
connection:
dbms: mysql
user: {{username}}