Revision d8470559 lib/config.py
b/lib/config.py | ||
---|---|---|
34 | 34 |
import os |
35 | 35 |
import tempfile |
36 | 36 |
import random |
37 |
import logging |
|
37 | 38 |
|
38 | 39 |
from ganeti import errors |
39 | 40 |
from ganeti import locking |
... | ... | |
461 | 462 |
node: an object.Node instance |
462 | 463 |
|
463 | 464 |
""" |
465 |
logging.info("Adding node %s to configuration" % node.name) |
|
466 |
|
|
464 | 467 |
self._OpenConfig() |
465 | 468 |
self._config_data.nodes[node.name] = node |
466 | 469 |
self._WriteConfig() |
... | ... | |
470 | 473 |
"""Remove a node from the configuration. |
471 | 474 |
|
472 | 475 |
""" |
476 |
logging.info("Removing node %s from configuration" % node_name) |
|
477 |
|
|
473 | 478 |
self._OpenConfig() |
474 | 479 |
if node_name not in self._config_data.nodes: |
475 | 480 |
raise errors.ConfigurationError("Unknown node '%s'" % node_name) |
Also available in: Unified diff