summaryrefslogtreecommitdiffstats
path: root/cobbler/sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-04 15:23:16 -0400
committerJim Meyering <jim@meyering.net>2006-05-04 15:23:16 -0400
commitd24d9823cf254964c575030421c4972c24c45366 (patch)
tree2a29b53cb2e864d2167e2567828f00372c684c40 /cobbler/sync.py
parent018d57abccb1ad0310792a3018cad652c2bc70c6 (diff)
downloadthird_party-cobbler-d24d9823cf254964c575030421c4972c24c45366.tar.gz
third_party-cobbler-d24d9823cf254964c575030421c4972c24c45366.tar.xz
third_party-cobbler-d24d9823cf254964c575030421c4972c24c45366.zip
Switch to syck since Mihai has it packaged now. Check for syck brokenness in main().
Diffstat (limited to 'cobbler/sync.py')
-rw-r--r--cobbler/sync.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cobbler/sync.py b/cobbler/sync.py
index ae20872..80b0c67 100644
--- a/cobbler/sync.py
+++ b/cobbler/sync.py
@@ -10,8 +10,7 @@ import sys
import traceback
import re
import shutil
-import yaml # from RHN's spec-tree (Howell/Evans)
-
+import syck
import IPy
from msg import *
@@ -253,7 +252,7 @@ class BootSync:
# resolve to current values
distro.kernel = self.api.utils.find_kernel(distro.kernel)
distro.initrd = self.api.utils.find_initrd(distro.initrd)
- self.tee(fd,yaml.dump(distro.to_datastruct()))
+ self.tee(fd,syck.dump(distro.to_datastruct()))
self.close_file(fd)
@@ -266,7 +265,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.api.config.server, profile.name)
- self.tee(fd,yaml.dump(profile.to_datastruct()))
+ self.tee(fd,syck.dump(profile.to_datastruct()))
self.close_file(fd)