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

    rac15159 r0a49bd7  
    44import time
    55
     6from federation.proof import proof
    67from federation.remote_service import service_caller
    78from federation.client_lib import client_opts, exit_with_fault, RPCException, \
     
    1213        client_opts.__init__(self)
    1314        self.add_option("--experiment_cert", dest="exp_certfile",
    14                 type="string", help="experiment name certificate file")
     15                action='callback', callback=self.expand_file, type='str',
     16                help="experiment name certificate file")
    1517        self.add_option("--experiment_name", dest="exp_name",
    1618                type="string", help="human readable experiment name")
    1719        self.add_option("--logfile", dest="logfile", default=None,
     20                action='callback', callback=self.expand_file, type='str',
    1821                help="File to write log to")
    1922        self.add_option('--update_time', dest='update', type='int', default=10,
     
    2528(opts, args) = parser.parse_args()
    2629
    27 cert, fid, url = wrangle_standard_options(opts)
     30try:
     31    cert, fid, url = wrangle_standard_options(opts)
     32except RuntimeError, e:
     33    sys.exit("%s" %e)
    2834
    2935if opts.exp_name and opts.exp_certfile:
     
    5864                caller=service_caller('Info'), responseBody="InfoResponseBody")
    5965    except RPCException, e:
    60         exit_with_fault(e)
     66        exit_with_fault(e, 'Info (spewlog)', opts)
    6167    except RuntimeError, e:
    6268        sys.exit("Error processing RPC: %s" % e)
     69
     70    proof = proof.from_dict(resp_dict.get('proof', {}))
     71    if proof and opts.auth_log:
     72        log_authentication(opts.auth_log, 'Info (spewlog)', 'succeeded', proof)
    6373
    6474    if not opts.serialize_only:
Note: See TracChangeset for help on using the changeset viewer.