Changeset e83f2f2 for fedd/fedd_image.py
- Timestamp:
- Dec 14, 2010 6:58:28 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- c092b7f
- Parents:
- 2627eb3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_image.py
r2627eb3 re83f2f2 8 8 9 9 from federation import topdl 10 from federation.proof import proof 10 11 from federation.remote_service import service_caller 11 12 from federation.client_lib import client_opts, exit_with_fault, RPCException, \ 12 wrangle_standard_options, do_rpc, get_experiment_names, save_certfile 13 wrangle_standard_options, do_rpc, get_experiment_names, save_certfile,\ 14 log_authentication 13 15 14 16 … … 296 298 caller=service_caller('Info'), responseBody="InfoResponseBody") 297 299 300 proof = proof.from_dict(resp_dict.get('proof', {})) 301 if proof and opts.auth_log: 302 log_authentication(opts.auth_log, 'Image', 'succeeded', proof) 298 303 return extract_topo_from_message(resp_dict, opts.serialize_only) 299 304 … … 374 379 top = get_experiment_topo(opts, cert, url) 375 380 except RPCException, e: 376 exit_with_fault(e )381 exit_with_fault(e, 'image', opts) 377 382 except RuntimeError, e: 378 383 sys.exit("%s" % e) … … 386 391 except RPCException, e: 387 392 print >>sys.stderr, "Cannot extract a topology from %s" % opts.file 388 exit_with_fault(e )393 exit_with_fault(e, 'image', opts) 389 394 except RuntimeError, e: 390 395 sys.exit("Cannot extract a topology from %s: %s" % (opts.file, e))
Note: See TracChangeset
for help on using the changeset viewer.