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_terminate.py

    r2627eb3 re83f2f2  
    44
    55from federation.fedid import fedid
     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
     9        wrangle_standard_options, do_rpc, log_authentication
    910
    1011class terminate_opts(client_opts):
     
    6667            responseBody='TerminateResponseBody')
    6768except RPCException, e:
    68     exit_with_fault(e)
     69    exit_with_fault(e, 'Terminate', opts)
    6970except RuntimeError, e:
    7071    sys.exit("Error processing RPC: %s" % e)
     
    7879        out.close()
    7980        sys.exit("No log returned")
     81proof = proof.from_dict(resp_dict.get('proof', {}))
     82if proof and opts.auth_log:
     83    log_authentication(opts.auth_log, 'Terminate', 'succeeded', proof)
Note: See TracChangeset for help on using the changeset viewer.