diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-06-13 15:59:47 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-06-13 15:59:47 -0400 |
commit | 32908858c032f91726b02520d11a16d6cff2e93a (patch) | |
tree | d914d43b6231db3dc3755690fe1fca08223caee7 /cobbler/serializer.py | |
parent | 72e9e1de6c3bc096180c62734476f775cdebfbee (diff) | |
download | third_party-cobbler-32908858c032f91726b02520d11a16d6cff2e93a.tar.gz third_party-cobbler-32908858c032f91726b02520d11a16d6cff2e93a.tar.xz third_party-cobbler-32908858c032f91726b02520d11a16d6cff2e93a.zip |
Lots of work towards profile inheritance. This works in the UI now, with
some rough edges (like listing the tree).
cobbler profile add --name=profile2 --inherit=profile1 --otherparameters=...
cobbler profile edit --name=profile2 --stillmoreparamters=...
Data is interleaved for hashes, combined for arrays, and overriden for scalar
values. This was heavily inspired by Will-It-Blend, and in this implementation
it all blends.
Implementation notes -- Updating a parent profile doesn't apply changes
to the child objects until a sync, so this seems like a good upgrade
for a future commit. Also, the children mapping that makes this
possible needs some tweaks because they may load out of order,
in which case "cobbler list" can't render a full
tree. There are various approaches to deal with this and it should be
a (relatively) easy change.
Diffstat (limited to 'cobbler/serializer.py')
-rw-r--r-- | cobbler/serializer.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cobbler/serializer.py b/cobbler/serializer.py index a8a3e73..38a182d 100644 --- a/cobbler/serializer.py +++ b/cobbler/serializer.py @@ -27,7 +27,6 @@ def serialize(obj): Will create intermediate paths if it can. Returns True on Success, False on permission errors. """ - # FIXME: DEBUG filename = obj.filename() try: fd = open(filename,"w+") |