puppet node classifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
295 B

  1. #!/usr/bin/env python3
  2. import ZODB
  3. import ZODB.FileStorage
  4. def main():
  5. storage = ZODB.FileStorage.FileStorage("pupper.db")
  6. db = ZODB.DB(storage)
  7. for k, v in db.open().root.nodes.items():
  8. print(k, v.name, ":", v, "\n\t", v.body, "\n")
  9. if __name__ == "__main__":
  10. main()