Changeset 0a49bd7 for fedd/fedd_ftopo.py


Ignore:
Timestamp:
Jan 15, 2011 5:52:15 PM (14 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_ftopo.py

    rac15159 r0a49bd7  
    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):
     
    1214        client_opts.__init__(self)
    1315        self.add_option("--experiment_cert", dest="exp_certfile",
    14                 type="string", help="experiment certificate file")
     16                action='callback', callback=self.expand_file, type='str',
     17                help="experiment certificate file")
    1518        self.add_option("--experiment_name", dest="exp_name",
    1619                type="string", help="human readable experiment name")
     
    4144            caller=service_caller('Info'), responseBody='InfoResponseBody')
    4245except RPCException, e:
    43     exit_with_fault(e)
     46    exit_with_fault(e, 'Ftopo', opts)
    4447except RuntimeError, e:
    4548    sys.exit("Error processing RPC: %s" % e)
     
    6467else:
    6568    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.