Revision 7bde3275 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
2315 | 2315 |
name_info = utils.HostInfo(self.op.new_name) |
2316 | 2316 |
|
2317 | 2317 |
self.op.new_name = new_name = name_info.name |
2318 |
instance_list = self.cfg.GetInstanceList() |
|
2319 |
if new_name in instance_list: |
|
2320 |
raise errors.OpPrereqError("Instance '%s' is already in the cluster" % |
|
2321 |
instance_name) |
|
2322 |
|
|
2318 | 2323 |
if not getattr(self.op, "ignore_ip", False): |
2319 | 2324 |
command = ["fping", "-q", name_info.ip] |
2320 | 2325 |
result = utils.RunCmd(command) |
Also available in: Unified diff