Revision 1b54fc6c lib/config.py
b/lib/config.py | ||
---|---|---|
1066 | 1066 |
|
1067 | 1067 |
result = rpc.RpcRunner.call_upload_file(node_list, self._cfg_file, |
1068 | 1068 |
address_list=addr_list) |
1069 |
for node in node_list: |
|
1070 |
if not result[node]: |
|
1071 |
logging.error("copy of file %s to node %s failed", |
|
1072 |
self._cfg_file, node) |
|
1069 |
for to_node, to_result in result.items(): |
|
1070 |
msg = to_result.RemoteFailMsg() |
|
1071 |
if msg: |
|
1072 |
msg = ("Copy of file %s to node %s failed: %s" % |
|
1073 |
(self._cfg_file, node, msg)) |
|
1074 |
logging.error(msg) |
|
1073 | 1075 |
bad = True |
1074 | 1076 |
return not bad |
1075 | 1077 |
|
Also available in: Unified diff