projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nic parameters: constants
[ganeti-local]
/
lib
/
config.py
diff --git
a/lib/config.py
b/lib/config.py
index
8917f4d
..
2e3a4f2
100644
(file)
--- a/
lib/config.py
+++ b/
lib/config.py
@@
-1066,10
+1066,12
@@
class ConfigWriter:
result = rpc.RpcRunner.call_upload_file(node_list, self._cfg_file,
address_list=addr_list)
result = rpc.RpcRunner.call_upload_file(node_list, self._cfg_file,
address_list=addr_list)
- for node in node_list:
- if not result[node]:
- logging.error("copy of file %s to node %s failed",
- self._cfg_file, node)
+ for to_node, to_result in result.items():
+ msg = to_result.RemoteFailMsg()
+ if msg:
+ msg = ("Copy of file %s to node %s failed: %s" %
+ (self._cfg_file, node, msg))
+ logging.error(msg)
bad = True
return not bad
bad = True
return not bad