diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-11-19 15:56:33 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-11-19 15:56:33 -0500 |
commit | e99613c5cccda15759d152d9481eb4b77a6e78ce (patch) | |
tree | 91033d5594c56be72631148c4eadda7c75a1e1fc /cobbler/commands.py | |
parent | 8ffb261c99f38eb88c8fa34d7c4a707e68be5ef9 (diff) | |
download | cobbler-e99613c5cccda15759d152d9481eb4b77a6e78ce.tar.gz cobbler-e99613c5cccda15759d152d9481eb4b77a6e78ce.tar.xz cobbler-e99613c5cccda15759d152d9481eb4b77a6e78ce.zip |
Make the object creator code aware of subobjects.
Diffstat (limited to 'cobbler/commands.py')
-rw-r--r-- | cobbler/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/commands.py b/cobbler/commands.py index 3ef223a1..88d92b75 100644 --- a/cobbler/commands.py +++ b/cobbler/commands.py @@ -139,13 +139,13 @@ class CobblerFunction: (self.options, self.args) = p.parse_args(args) return True - def object_manipulator_start(self,new_fn,collect_fn): + def object_manipulator_start(self,new_fn,collect_fn,subobject=False): """ Boilerplate for objects that offer add/edit/delete/remove/copy functionality. """ if "add" in self.args: - obj = new_fn() + obj = new_fn(is_subobject=subobject) else: if not self.options.name: raise CX(_("name is required")) |