Ignore:
Timestamp:
Jan 15, 2011 5:52:15 PM (13 years ago)
Author:
Ted Faber <faber@…>
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)
Message:

merge from current

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_multiinfo.py

    rac15159 r0a49bd7  
    1010import time
    1111
     12from federation.proof import proof
    1213from federation.remote_service import service_caller
    1314from 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
    1516
    1617class exp_data_opts(client_opts):
     
    2526parser = exp_data_opts()
    2627(opts, args) = parser.parse_args()
    27 cert, fid, url = wrangle_standard_options(opts)
     28try:
     29    cert, fid, url = wrangle_standard_options(opts)
     30except RuntimeError, e:
     31    sys.exit("%s" %e)
    2832
    2933try:
     
    3539            responseBody='MultiInfoResponseBody')
    3640except RPCException, e:
    37     exit_with_fault(e)
     41    exit_with_fault(e, 'MultiInfo', opts)
    3842except RuntimeError, e:
    3943    sys.exit("Error processing RPC: %s" % e)
     
    4448        formatter(i, d)
    4549    print "---"
     50proof = proof.from_dict(resp_dict.get('proof', {}))
     51if proof and opts.auth_log:
     52    log_authentication(opts.auth_log, 'MultiInfo', 'succeeded', proof)
Note: See TracChangeset for help on using the changeset viewer.