projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27619aa
)
Rename variable to reflect its content
author
Thomas Thrainer
<thomasth@google.com>
Wed, 11 Sep 2013 14:08:55 +0000
(16:08 +0200)
committer
Thomas Thrainer
<thomasth@google.com>
Thu, 12 Sep 2013 12:56:55 +0000
(14:56 +0200)
Rename the "node" variable to "node_uuid" as that's the content it
actually receives.
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/cmdlib/instance_storage.py
patch
|
blob
|
history
diff --git
a/lib/cmdlib/instance_storage.py
b/lib/cmdlib/instance_storage.py
index
6f6cdd5
..
a8d8693
100644
(file)
--- a/
lib/cmdlib/instance_storage.py
+++ b/
lib/cmdlib/instance_storage.py
@@
-934,9
+934,9
@@
def _CheckNodesFreeDiskOnVG(lu, node_uuids, vg, requested):
"""
nodeinfo = _PerformNodeInfoCall(lu, node_uuids, vg)
- for node in node_uuids:
- node_name = lu.cfg.GetNodeName(node)
- info = nodeinfo[node]
+ for node_uuid in node_uuids:
+ node_name = lu.cfg.GetNodeName(node_uuid)
+ info = nodeinfo[node_uuid]
info.Raise("Cannot get current information from node %s" % node_name,
prereq=True, ecode=errors.ECODE_ENVIRON)
_CheckVgCapacityForNode(node_name, info.payload, vg, requested)