Revision 0e137c28 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
161 | 161 |
This is a no-op, since we don't run hooks. |
162 | 162 |
|
163 | 163 |
""" |
164 |
return |
|
164 |
return {}, [], []
|
|
165 | 165 |
|
166 | 166 |
|
167 | 167 |
def _GetWantedNodes(lu, nodes): |
... | ... | |
239 | 239 |
secondary_nodes: List of secondary nodes as strings |
240 | 240 |
""" |
241 | 241 |
env = { |
242 |
"OP_TARGET": name, |
|
242 | 243 |
"INSTANCE_NAME": name, |
243 | 244 |
"INSTANCE_PRIMARY": primary_node, |
244 | 245 |
"INSTANCE_SECONDARIES": " ".join(secondary_nodes), |
... | ... | |
545 | 546 |
ourselves in the post-run node list. |
546 | 547 |
|
547 | 548 |
""" |
548 |
return {}, [], [self.hostname.name] |
|
549 |
env = {"OP_TARGET": self.op.cluster_name} |
|
550 |
return env, [], [self.hostname.name] |
|
549 | 551 |
|
550 | 552 |
def CheckPrereq(self): |
551 | 553 |
"""Verify that the passed name is a valid one. |
... | ... | |
936 | 938 |
|
937 | 939 |
""" |
938 | 940 |
env = { |
941 |
"OP_TARGET": self.op.sstore.GetClusterName(), |
|
939 | 942 |
"NEW_NAME": self.op.name, |
940 | 943 |
} |
941 | 944 |
mn = self.sstore.GetMasterNode() |
... | ... | |
1126 | 1129 |
|
1127 | 1130 |
""" |
1128 | 1131 |
env = { |
1132 |
"OP_TARGET": self.op.node_name, |
|
1129 | 1133 |
"NODE_NAME": self.op.node_name, |
1130 | 1134 |
} |
1131 | 1135 |
all_nodes = self.cfg.GetNodeList() |
... | ... | |
1365 | 1369 |
|
1366 | 1370 |
""" |
1367 | 1371 |
env = { |
1372 |
"OP_TARGET": self.op.node_name, |
|
1368 | 1373 |
"NODE_NAME": self.op.node_name, |
1369 | 1374 |
"NODE_PIP": self.op.primary_ip, |
1370 | 1375 |
"NODE_SIP": self.op.secondary_ip, |
... | ... | |
1587 | 1592 |
|
1588 | 1593 |
""" |
1589 | 1594 |
env = { |
1595 |
"OP_TARGET": self.new_master, |
|
1590 | 1596 |
"NEW_MASTER": self.new_master, |
1591 | 1597 |
"OLD_MASTER": self.old_master, |
1592 | 1598 |
} |
Also available in: Unified diff