Changeset da5b93c


Ignore:
Timestamp:
May 14, 2010 11:09:20 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
b14b495
Parents:
b0581ac
Message:

checkpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/compose.py

    rb0581ac rda5b93c  
    220220
    221221
     222# Main line begins
    222223
    223224const_re = re.compile("\s*#\s*COMPOSITION:\s*([^:]+:[^:]+:.*)")
     
    260261
    261262    top = remote_ns2topdl(opts.url, contents, cert)
     263    if not top:
     264        sys.exit("Cannot create topology from: %s" % fn)
    262265    add_interfaces(top, marks)
    263266    localize_names(top, names, marks)
     
    265268    constraints.extend(marks.values())
    266269    comps.append(top)
     270
     271# Let the user know if they messed up on specifying constraints.
     272if 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 )]
    267277
    268278# Now the various components live in the same namespace and are marked with
Note: See TracChangeset for help on using the changeset viewer.