changed to python3
This commit is contained in:
parent
85e51aad1a
commit
7397686e81
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import yaml
|
import yaml
|
||||||
|
@ -14,5 +14,5 @@ if os.path.exists(db_file):
|
||||||
with open(db_file) as fd:
|
with open(db_file) as fd:
|
||||||
db.update(yaml.load(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',[])))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue