Changeset 0a49bd7 for fedd/fedd_ns2topdl.py
- Timestamp:
- Jan 15, 2011 5:52:15 PM (13 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_ns2topdl.py
rac15159 r0a49bd7 4 4 5 5 from federation import topdl 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("--file", dest="file", 15 action='callback', callback=self.expand_file, type='str', 14 16 help="experiment description file") 15 17 self.add_option("--output", dest="outfile", type="string", … … 19 21 (opts, args) = parser.parse_args() 20 22 21 cert, fid, url = wrangle_standard_options(opts) 23 try: 24 cert, fid, url = wrangle_standard_options(opts) 25 except RuntimeError, e: 26 sys.exit("%s" %e) 22 27 23 28 if opts.file: … … 41 46 responseBody="Ns2TopdlResponseBody") 42 47 except RPCException, e: 43 exit_with_fault(e )48 exit_with_fault(e, 'Ns2Topdl', opts) 44 49 except RuntimeError, e: 45 50 sys.exit("Error processing RPC: %s" % e) … … 65 70 else: 66 71 print topdl.topology_to_xml(top, top="experiment") 72 proof = proof.from_dict(resp_dict.get('proof', {})) 73 if proof and opts.auth_log: 74 log_authentication(opts.auth_log, 'New (create)', 'succeeded', proof)
Note: See TracChangeset
for help on using the changeset viewer.