[et-mgmt-tools] Fix for Cobbler import running triggers
Matt Hyclak
hyclak at math.ohiou.edu
Thu Jan 3 15:47:28 UTC 2008
This is a fix to the patch yesterday to run triggers on cobbler import
(changeset f22f6b18149029e073c3db3ff812bb4c06e24036)
Matt
--
Matt Hyclak
Department of Mathematics
Department of Social Work
Ohio University
(740) 593-1263
-------------- next part --------------
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 952c663..ca78dc1 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -195,7 +195,7 @@ class Importer:
profile.set_kickstart(kickstart_file)
self.configure_tree_location(distro)
- self.distros.add(distro,save=True) # re-save
+ self.distros.add(distro,with_copy=True) # re-save
self.api.serialize()
# --------------------------------------------------------------------
@@ -480,7 +480,7 @@ class Importer:
distro.set_initrd(initrd)
distro.set_arch(pxe_arch)
distro.source_repos = []
- self.distros.add(distro,save=True)
+ self.distros.add(distro,with_copy=True)
self.distros_added.append(distro)
existing_profile = self.profiles.find(name=name)
@@ -495,7 +495,7 @@ class Importer:
profile.set_name(name)
profile.set_distro(name)
- self.profiles.add(profile,save=True)
+ self.profiles.add(profile,with_copy=True)
self.api.serialize()
return distro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080103/ac12f660/attachment.sig>
More information about the et-mgmt-tools
mailing list