0251c099ba
This PS enables cinder volume attachment for nova when used with ceph. Change-Id: I9772f38fb3a1a9af26bd92ee18a651d3372de64c
18 lines
331 B
Python
Executable File
18 lines
331 B
Python
Executable File
#!/usr/bin/env python
|
|
import json
|
|
import sys
|
|
|
|
def dump(s):
|
|
print json.dumps(eval(s))
|
|
|
|
def main(args):
|
|
if not args:
|
|
dump(''.join(sys.stdin.readlines()))
|
|
else:
|
|
for arg in args:
|
|
dump(''.join(open(arg, 'r').readlines()))
|
|
return 0
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main(sys.argv[1:]))
|