Untitled

From Torrid Bird, 9 Months ago, written in Plain Text, viewed 65 times.
URL http://pastebin.mattei.co/index.php/view/7340bc20 Embed
Download Paste or View Raw
  1. oslopolicy-checker --policy /root/policy.json  --access access.json
  2. Traceback (most recent call last):
  3.   File "/bin/oslopolicy-checker", line 10, in <module>
  4.     sys.exit(main())
  5.   File "/usr/lib/python2.7/site-packages/oslo_policy/shell.py", line 88, in main
  6.     tool(args.policy, args.access, args.rule, is_admin)
  7.   File "/usr/lib/python2.7/site-packages/oslo_policy/shell.py", line 38, in tool
  8.     access_data = jsonutils.loads(access)['token']
  9.   File "/usr/lib/python2.7/site-packages/oslo_serialization/jsonutils.py", line 256, in loads
  10.     return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
  11.   File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
  12.     return _default_decoder.decode(s)
  13.   File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
  14.     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  15.   File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
  16.     raise ValueError("No JSON object could be decoded")
  17. ValueError: No JSON object could be decoded
  18.  

Reply to "Untitled"

Here you can reply to the paste above