summaryrefslogtreecommitdiffstats
path: root/cobbler/item_system.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/item_system.py')
-rw-r--r--cobbler/item_system.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/cobbler/item_system.py b/cobbler/item_system.py
index 5f23be6..53cc979 100644
--- a/cobbler/item_system.py
+++ b/cobbler/item_system.py
@@ -18,9 +18,15 @@ import cexceptions
class System(item.Item):
- def __init__(self,config):
- self.config = config
- self.clear()
+ #def __init__(self,config):
+ # self.config = config
+ # self.clear()
+
+ def make_clone(self):
+ ds = self.to_datastruct()
+ cloned = System(self.config)
+ cloned.from_datastruct(ds)
+ return cloned
def clear(self):
self.name = None