Read in a path and dump the contents to the screen
(path)
| 12 | |
| 13 | |
| 14 | def dump(path): |
| 15 | """ |
| 16 | Read in a path and dump the contents to the screen |
| 17 | """ |
| 18 | if not os.path.isfile(path): |
| 19 | print("Not a file") |
| 20 | return |
| 21 | with open(path, "rb") as fp_: |
| 22 | data = salt.utils.msgpack.loads(fp_.read()) |
| 23 | pprint.pprint(data) |
| 24 | |
| 25 | |
| 26 | if __name__ == "__main__": |
no test coverage detected