Changeset 0a49bd7 for fedd/fedd_multiinfo.py
- Timestamp:
- Jan 15, 2011 5:52:15 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- aaf7f41
- Parents:
- ac15159 (diff), 944b746 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Ted Faber <faber@…> (01/15/11 17:51:40)
- git-committer:
- Ted Faber <faber@…> (01/15/11 17:52:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_multiinfo.py
rac15159 r0a49bd7 10 10 import time 11 11 12 from federation.proof import proof 12 13 from federation.remote_service import service_caller 13 14 from federation.client_lib import client_opts, exit_with_fault, RPCException,\ 14 wrangle_standard_options, do_rpc, info_format 15 wrangle_standard_options, do_rpc, info_format, log_authentication 15 16 16 17 class exp_data_opts(client_opts): … … 25 26 parser = exp_data_opts() 26 27 (opts, args) = parser.parse_args() 27 cert, fid, url = wrangle_standard_options(opts) 28 try: 29 cert, fid, url = wrangle_standard_options(opts) 30 except RuntimeError, e: 31 sys.exit("%s" %e) 28 32 29 33 try: … … 35 39 responseBody='MultiInfoResponseBody') 36 40 except RPCException, e: 37 exit_with_fault(e )41 exit_with_fault(e, 'MultiInfo', opts) 38 42 except RuntimeError, e: 39 43 sys.exit("Error processing RPC: %s" % e) … … 44 48 formatter(i, d) 45 49 print "---" 50 proof = proof.from_dict(resp_dict.get('proof', {})) 51 if proof and opts.auth_log: 52 log_authentication(opts.auth_log, 'MultiInfo', 'succeeded', proof)
Note: See TracChangeset
for help on using the changeset viewer.