Changeset e83f2f2 for fedd/fedd_info.py


Ignore:
Timestamp:
Dec 14, 2010 6:58:28 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
c092b7f
Parents:
2627eb3
Message:

Move proofs around. Lots of changes, including fault handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_info.py

    r2627eb3 re83f2f2  
    33import sys
    44
     5from federation.proof import proof
    56from federation.remote_service import service_caller
    67from federation.client_lib import client_opts, exit_with_fault, RPCException,\
    7         wrangle_standard_options, do_rpc, get_experiment_names, info_format
     8        wrangle_standard_options, do_rpc, get_experiment_names, info_format, \
     9        log_authentication
    810
    911class exp_data_opts(client_opts):
     
    4345            caller=service_caller('Info'), responseBody='InfoResponseBody')
    4446except RPCException, e:
    45     exit_with_fault(e)
     47    exit_with_fault(e, 'Info', opts)
    4648except RuntimeError, e:
    4749    sys.exit("Error processing RPC: %s" % e)
     
    5355    except RuntimeError, e:
    5456        print >>sys.stderr, "Warning: %s" % e
     57proof = proof.from_dict(resp_dict.get('proof', {}))
     58if proof and opts.auth_log:
     59    log_authentication(opts.auth_log, 'Info', 'succeeded', proof)
Note: See TracChangeset for help on using the changeset viewer.