summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-06-28 16:57:49 -0400
committerJim Meyering <jim@meyering.net>2006-06-28 16:57:49 -0400
commit98bdc7c86a28eafbab15061e9a5d0fd4f5cdace1 (patch)
tree12bc44a95469ee2d75f590c1f637ff12d80d2347 /cobbler/action_sync.py
parent662c68e18943d913b503ba86758d91c27f92be98 (diff)
downloadthird_party-cobbler-98bdc7c86a28eafbab15061e9a5d0fd4f5cdace1.tar.gz
third_party-cobbler-98bdc7c86a28eafbab15061e9a5d0fd4f5cdace1.tar.xz
third_party-cobbler-98bdc7c86a28eafbab15061e9a5d0fd4f5cdace1.zip
Make cobbler use the Howell-Evans YAML parser now, so RHEL4 support
will be possible (Syck needs Python 2.4).
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 3334c62..399a849 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -15,7 +15,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import os
import shutil
-import syck
+import yaml
import utils
import cobbler_msg
@@ -256,7 +256,7 @@ class BootSync:
# resolve to current values
distro.kernel = utils.find_kernel(distro.kernel)
distro.initrd = utils.find_initrd(distro.initrd)
- self.tee(fd,syck.dump(distro.to_datastruct()))
+ self.tee(fd,yaml.dump(distro.to_datastruct()))
self.close_file(fd)
@@ -269,7 +269,7 @@ class BootSync:
# the HTTP mirror, so make it something anaconda can get at
if profile.kickstart and profile.kickstart.startswith("/"):
profile.kickstart = "http://%s/cobbler/kickstarts/%s/ks.cfg" % (self.settings.server, profile.name)
- self.tee(fd,syck.dump(profile.to_datastruct()))
+ self.tee(fd,yaml.dump(profile.to_datastruct()))
self.close_file(fd)
@@ -278,7 +278,7 @@ class BootSync:
Create system information for xen-net-install
"""
fd = self.open_file(filename,"w+")
- self.tee(fd,syck.dump(system.to_datastruct()))
+ self.tee(fd,yaml.dump(system.to_datastruct()))
self.close_file(fd)
def tee(self,fd,text):