summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler.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/cobbler.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/cobbler.py')
-rwxr-xr-xcobbler/cobbler.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index 47c8c5a..0b26307 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -9,6 +9,7 @@ library. Consult 'man cobbler' for general info.
import os
import sys
import api
+import syck
from msg import *
class BootCLI:
@@ -290,6 +291,11 @@ def main():
"""
CLI entry point
"""
+
+ # verify syck isn't busted (old syck bindings were)
+ if not hasattr(syck,"dump"):
+ raise Exception("needs a more-recent PySyck")
+
if os.getuid() != 0:
# while it's true that we don't technically need root, we do need
# permissions on a relatively long list of files that ordinarily