summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_profiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/collection_profiles.py')
-rw-r--r--cobbler/collection_profiles.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py
index b691822..a5b1996 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -1,19 +1,22 @@
-import profile
-import utils
-import collection
-
-#--------------------------------------------
-
"""
A profile represents a distro paired with a kickstart file.
For instance, FC5 with a kickstart file specifying OpenOffice
might represent a 'desktop' profile. For Xen, there are many
additional options, with client-side defaults (not kept here).
+
+Michael DeHaan <mdehaan@redhat.com>
"""
+
+import item_profile as profile
+import utils
+import collection
+
+#--------------------------------------------
+
class Profiles(collection.Collection):
- def factory_produce(self,config):
- return profile.Profile(config)
+ def factory_produce(self,config,seed_data):
+ return profile.Profile(config).from_datastruct(seed_data)
def filename(self):
return "/var/lib/cobbler/profiles"