Changeset e83f2f2 for fedd/fedd_ftopo.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_ftopo.py

    r2627eb3 re83f2f2  
    44
    55from federation import topdl
     6from federation.proof import proof
    67from federation.remote_service import service_caller
    78from federation.client_lib import client_opts, exit_with_fault, RPCException,\
    8         wrangle_standard_options, do_rpc, get_experiment_names, info_format
     9        wrangle_standard_options, do_rpc, get_experiment_names, info_format, \
     10        log_authentication
    911
    1012class ftopo_opts(client_opts):
     
    4244            caller=service_caller('Info'), responseBody='InfoResponseBody')
    4345except RPCException, e:
    44     exit_with_fault(e)
     46    exit_with_fault(e, 'Ftopo', opts)
    4547except RuntimeError, e:
    4648    sys.exit("Error processing RPC: %s" % e)
     
    6567else:
    6668    sys.exit("Badly formatted response (no experiment descrption)!?")
     69proof = proof.from_dict(resp_dict.get('proof', {}))
     70if proof and opts.auth_log:
     71    log_authentication(opts.auth_log, 'Ftopo', 'succeeded', proof)
Note: See TracChangeset for help on using the changeset viewer.