Changeset 0a49bd7 for fedd/fedd_spewlog.py
- Timestamp:
- Jan 15, 2011 5:52:15 PM (14 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_spewlog.py
rac15159 r0a49bd7 4 4 import time 5 5 6 from federation.proof import proof 6 7 from federation.remote_service import service_caller 7 8 from federation.client_lib import client_opts, exit_with_fault, RPCException, \ … … 12 13 client_opts.__init__(self) 13 14 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") 15 17 self.add_option("--experiment_name", dest="exp_name", 16 18 type="string", help="human readable experiment name") 17 19 self.add_option("--logfile", dest="logfile", default=None, 20 action='callback', callback=self.expand_file, type='str', 18 21 help="File to write log to") 19 22 self.add_option('--update_time', dest='update', type='int', default=10, … … 25 28 (opts, args) = parser.parse_args() 26 29 27 cert, fid, url = wrangle_standard_options(opts) 30 try: 31 cert, fid, url = wrangle_standard_options(opts) 32 except RuntimeError, e: 33 sys.exit("%s" %e) 28 34 29 35 if opts.exp_name and opts.exp_certfile: … … 58 64 caller=service_caller('Info'), responseBody="InfoResponseBody") 59 65 except RPCException, e: 60 exit_with_fault(e )66 exit_with_fault(e, 'Info (spewlog)', opts) 61 67 except RuntimeError, e: 62 68 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) 63 73 64 74 if not opts.serialize_only:
Note: See TracChangeset
for help on using the changeset viewer.