Commit 441a6638 authored by Likun Zhang's avatar Likun Zhang
Browse files

Warned if import bind10_dns or bind10_xfr failed.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 811eea07
......@@ -32,8 +32,10 @@ from optparse import OptionParser, OptionValueError
from bind10_xfr import *
from bind10_dns import *
except ImportError as e:
# C++ loadable module may not be installed; even so the xfrout process
# must keep running, so we warn about it and move forward.
sys.stderr.write('[b10-xfrout] failed to import DNS or XFR module: %s\n' % str(e))
if "B10_FROM_SOURCE" in os.environ:
SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrout"
Supports Markdown
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