Revision a744b676 lib/cli.py
b/lib/cli.py | ||
---|---|---|
38 | 38 |
from ganeti import rpc |
39 | 39 |
from ganeti import ssh |
40 | 40 |
from ganeti import compat |
41 |
from ganeti import netutils |
|
41 | 42 |
|
42 | 43 |
from optparse import (OptionParser, TitledHelpFormatter, |
43 | 44 |
Option, OptionValueError) |
... | ... | |
1624 | 1625 |
elif isinstance(err, errors.HooksFailure): |
1625 | 1626 |
obuf.write("Failure: hooks general failure: %s" % msg) |
1626 | 1627 |
elif isinstance(err, errors.ResolverError): |
1627 |
this_host = utils.HostInfo.SysName() |
|
1628 |
this_host = netutils.HostInfo.SysName()
|
|
1628 | 1629 |
if err.args[0] == this_host: |
1629 | 1630 |
msg = "Failure: can't resolve my own hostname ('%s')" |
1630 | 1631 |
else: |
Also available in: Unified diff