Revision 099c52ad lib/config.py
b/lib/config.py | ||
---|---|---|
32 | 32 |
""" |
33 | 33 |
|
34 | 34 |
import os |
35 |
import tempfile |
|
36 | 35 |
import random |
37 | 36 |
import logging |
38 | 37 |
import time |
... | ... | |
905 | 904 |
@param node: a Node instance |
906 | 905 |
|
907 | 906 |
""" |
908 |
logging.info("Adding node %s to configuration" % node.name)
|
|
907 |
logging.info("Adding node %s to configuration", node.name)
|
|
909 | 908 |
|
910 | 909 |
self._EnsureUUID(node) |
911 | 910 |
|
... | ... | |
920 | 919 |
"""Remove a node from the configuration. |
921 | 920 |
|
922 | 921 |
""" |
923 |
logging.info("Removing node %s from configuration" % node_name)
|
|
922 |
logging.info("Removing node %s from configuration", node_name)
|
|
924 | 923 |
|
925 | 924 |
if node_name not in self._config_data.nodes: |
926 | 925 |
raise errors.ConfigurationError("Unknown node '%s'" % node_name) |
Also available in: Unified diff