summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-13 15:59:47 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-13 15:59:47 -0400
commit32908858c032f91726b02520d11a16d6cff2e93a (patch)
treed914d43b6231db3dc3755690fe1fca08223caee7 /cobbler/api.py
parent72e9e1de6c3bc096180c62734476f775cdebfbee (diff)
downloadthird_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/api.py')
-rw-r--r--cobbler/api.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index fe35751..58f1046 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -80,30 +80,30 @@ class BootAPI:
"""
return self._config.settings()
- def new_system(self):
+ def new_system(self,is_subobject=False):
"""
Return a blank, unconfigured system, unattached to a collection
"""
- return self._config.new_system()
+ return self._config.new_system(is_subobject=is_subobject)
- def new_distro(self):
+ def new_distro(self,is_subobject=False):
"""
Create a blank, unconfigured distro, unattached to a collection.
"""
- return self._config.new_distro()
+ return self._config.new_distro(is_subobject=is_subobject)
- def new_profile(self):
+ def new_profile(self,is_subobject=False):
"""
Create a blank, unconfigured profile, unattached to a collection
"""
- return self._config.new_profile()
+ return self._config.new_profile(is_subobject=is_subobject)
- def new_repo(self):
+ def new_repo(self,is_subobject=False):
"""
Create a blank, unconfigured repo, unattached to a collection
"""
- return self._config.new_repo()
+ return self._config.new_repo(is_subobject=is_subobject)
def check(self):
"""