changed to python3

This commit is contained in:
Maria Haider 2021-05-27 12:50:58 +02:00
parent 85e51aad1a
commit 7397686e81
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import yaml
@ -14,5 +14,5 @@ if os.path.exists(db_file):
with open(db_file) as fd:
db.update(yaml.load(fd))
print yaml.dump(dict(classes=db['classes'].get(node_name,dict()),parameters=dict(roles=db.get('members',[]))))
print(yaml.dump(dict(classes=db['classes'].get(node_name,dict()),parameters=dict(roles=db.get('members',[])))))