- Timestamp:
- May 14, 2010 11:09:20 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- b14b495
- Parents:
- b0581ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/compose.py
rb0581ac rda5b93c 220 220 221 221 222 # Main line begins 222 223 223 224 const_re = re.compile("\s*#\s*COMPOSITION:\s*([^:]+:[^:]+:.*)") … … 260 261 261 262 top = remote_ns2topdl(opts.url, contents, cert) 263 if not top: 264 sys.exit("Cannot create topology from: %s" % fn) 262 265 add_interfaces(top, marks) 263 266 localize_names(top, names, marks) … … 265 268 constraints.extend(marks.values()) 266 269 comps.append(top) 270 271 # Let the user know if they messed up on specifying constraints. 272 if any([ not isinstance(c.name, tuple) for c in constraints]): 273 print >>sys.stderr, "nodes not found for constraints on %s" % \ 274 ",".join([ c.name for c in constraints \ 275 if isinstance(c.name, basestring)]) 276 constraints = [ c for c in constraints if isinstance(c.name, tuple )] 267 277 268 278 # Now the various components live in the same namespace and are marked with
Note: See TracChangeset
for help on using the changeset viewer.