Ignore:
Timestamp:
Dec 1, 2011 2:46:41 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
32b4536
Parents:
4b256af
Message:

More rational OS structure updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r4b256af rdb3da0b  
    10101010                        os.version = nos.distributionversion
    10111011                        for a in nos.attribute:
     1012                            if os.get_attribute(a.attribute):
     1013                                os.remove_attribute(a.attribute)
    10121014                            os.set_attribute(a.attribute, a.value)
    10131015                        break
    10141016                else:
    1015                     e.os.append(nos)
     1017                    # If both nodes have one OS, this is a replacement
     1018                    if len(ne.os) == 1 and len(e.os) == 1: e.os = ne.os
     1019                    else: e.os.append(nos)
    10161020
    10171021        # Annotate the topology with embedding info
Note: See TracChangeset for help on using the changeset viewer.