Commit 67fe61c4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Use ganeti.serializer module in ganeti-watcher

Reviewed-by: ultrotter
parent 438b45d4
......@@ -33,12 +33,12 @@ import re
import time
import fcntl
import errno
import simplejson
import logging
from optparse import OptionParser
from ganeti import utils
from ganeti import constants
from ganeti import serializer
from ganeti import ssconf
from ganeti import errors
......@@ -119,7 +119,7 @@ class WatcherState(object):
self.statefile = f
try: = simplejson.load(self.statefile) = serializer.Load(
except Exception, msg:
# Ignore errors while loading the file and treat it as empty = {}
......@@ -226,7 +226,7 @@ class WatcherState(object):
simplejson.dump(, self.statefile)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment