diff options
-rw-r--r-- | cobbler/collection_distros.py | 6 | ||||
-rw-r--r-- | cobbler/collection_profiles.py | 4 | ||||
-rw-r--r-- | cobbler/collection_systems.py | 4 | ||||
-rw-r--r-- | cobbler/item_distro.py | 2 | ||||
-rw-r--r-- | cobbler/item_profile.py | 2 | ||||
-rw-r--r-- | cobbler/item_system.py | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py index 66472bf..03a1557 100644 --- a/cobbler/collection_distros.py +++ b/cobbler/collection_distros.py @@ -1,5 +1,5 @@ -import utils +import utils import collection import item_distro as distro import collection_profiles as profiles @@ -9,10 +9,10 @@ A distro represents a network bootable matched set of kernels and initrd files """ class Distros(collection.Collection): - + def factory_produce(self,config): return distro.Distro(config) - + def filename(self): return "/var/lib/cobbler/distros" diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py index cc23c12..b691822 100644 --- a/cobbler/collection_profiles.py +++ b/cobbler/collection_profiles.py @@ -11,10 +11,10 @@ might represent a 'desktop' profile. For Xen, there are many additional options, with client-side defaults (not kept here). """ class Profiles(collection.Collection): - + def factory_produce(self,config): return profile.Profile(config) - + def filename(self): return "/var/lib/cobbler/profiles" diff --git a/cobbler/collection_systems.py b/cobbler/collection_systems.py index 2edad6a..d353bbc 100644 --- a/cobbler/collection_systems.py +++ b/cobbler/collection_systems.py @@ -9,10 +9,10 @@ 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 filename(self): return "/var/lib/cobbler/systems" diff --git a/cobbler/item_distro.py b/cobbler/item_distro.py index 1c1a8d4..efbead9 100644 --- a/cobbler/item_distro.py +++ b/cobbler/item_distro.py @@ -8,7 +8,7 @@ class Distro(item.Item): def __init__(self,config): self.config = config self.clear() - + def clear(self): self.name = None self.kernel = None diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py index 09772a9..1f32c35 100644 --- a/cobbler/item_profile.py +++ b/cobbler/item_profile.py @@ -19,7 +19,7 @@ class Profile(item.Item): self.xen_mac = '' self.xen_paravirt = True - def from_datastruct(self,seed_data): + def from_datastruct(self,seed_data): self.name = seed_data['name'] self.distro = seed_data['distro'] self.kickstart = seed_data['kickstart'] diff --git a/cobbler/item_system.py b/cobbler/item_system.py index e489e4b..ef2985c 100644 --- a/cobbler/item_system.py +++ b/cobbler/item_system.py @@ -5,7 +5,7 @@ class System(item.Item): def __init__(self,config): self.config = config - self.clear() + self.clear() def clear(self): self.name = None |