Revision a8e07057 tools/cfgupgrade
b/tools/cfgupgrade | ||
---|---|---|
309 | 309 |
DowngradeIPolicy(ipolicy, "cluster") |
310 | 310 |
|
311 | 311 |
|
312 |
def DowngradeInstances(config_data): |
|
313 |
if "instances" not in config_data: |
|
314 |
raise Error("Can't find the 'instances' key in the configuration!") |
|
315 |
|
|
316 |
for _, iobj in config_data["instances"].items(): |
|
317 |
if "disks_active" in iobj: |
|
318 |
del iobj["disks_active"] |
|
319 |
|
|
320 |
|
|
312 | 321 |
def DowngradeAll(config_data): |
313 | 322 |
# Any code specific to a particular version should be labeled that way, so |
314 | 323 |
# it can be removed when updating to the next version. |
315 | 324 |
DowngradeCluster(config_data) |
316 | 325 |
DowngradeGroups(config_data) |
326 |
DowngradeInstances(config_data) |
|
317 | 327 |
|
318 | 328 |
|
319 | 329 |
def main(): |
Also available in: Unified diff