Changeset fd07c48 for fedd/fedd_create.py
- Timestamp:
- Jun 25, 2010 3:11:30 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 1027cf7
- Parents:
- e11f4e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_create.py
re11f4e0 rfd07c48 28 28 type="string", default=[], 29 29 help="Service description name:exporters:importers:attrs") 30 self.add_option("--map", dest="map", action="append", 31 type="string", default=[], 32 help="Explicit map from testbed label to URI - " + \ 33 "deter:https://users.isi.deterlab/net:13232") 30 34 31 35 def parse_service(svc): … … 102 106 for l in lines if service_re.match(l)]) 103 107 108 # Create a testbed map if one is specified 109 tbmap = { } 110 for m in opts.map: 111 i = m.find(":") 112 if i != -1: tbmap[m[0:i]] = m[i+1:] 113 else: sys.exit("Bad mapping argument: %s" %m ) 114 115 104 116 if not svcs: 105 117 print >>sys.stderr, "Warning:Neither master/project nor services requested" … … 147 159 sys.exit("New did not return an experiment ID??") 148 160 161 if tbmap: 162 msg['testbedmap'] = [ { 'testbed': t, 'uri': u } for t, u in tbmap.items() ] 163 149 164 if opts.debug > 1: print >>sys.stderr, msg 150 165
Note: See TracChangeset
for help on using the changeset viewer.