summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_systems.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-08 10:22:09 -0400
committerJim Meyering <jim@meyering.net>2006-05-08 10:22:09 -0400
commit643cf0d5bb69f2933cc88f03ccf288ed0eb52e42 (patch)
treeaea2d041aed77e96ff5c890ad0216c98fc0d42bd /cobbler/collection_systems.py
parentfc086c72640c3f8f51f9a07b76387647fb683025 (diff)
downloadthird_party-cobbler-643cf0d5bb69f2933cc88f03ccf288ed0eb52e42.tar.gz
third_party-cobbler-643cf0d5bb69f2933cc88f03ccf288ed0eb52e42.tar.xz
third_party-cobbler-643cf0d5bb69f2933cc88f03ccf288ed0eb52e42.zip
Unit tests pass again.
Diffstat (limited to 'cobbler/collection_systems.py')
-rw-r--r--cobbler/collection_systems.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/cobbler/collection_systems.py b/cobbler/collection_systems.py
index d353bbc..abcf417 100644
--- a/cobbler/collection_systems.py
+++ b/cobbler/collection_systems.py
@@ -1,17 +1,20 @@
+"""
+Systems are hostnames/MACs/IP names and the associated profile
+they belong to.
+
+Michael DeHaan <mdehaan@redhat.com>
+"""
+
import item_system as system
import utils
import collection
#--------------------------------------------
-"""
-Systems are hostnames/MACs/IP names and the associated profile
-they belong to.
-"""
class Systems(collection.Collection):
- def factory_produce(self,config):
- return system.System(config)
+ def factory_produce(self,config,seed_data):
+ return system.System(config).from_datastruct(seed_data)
def filename(self):
return "/var/lib/cobbler/systems"