summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cobbler/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/commands.py b/cobbler/commands.py
index 3ef223a..88d92b7 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"))