Revision 65b526e7

b/tools/cfgupgrade
410 410
  if "osparams_private_cluster" in cluster:
411 411
    del cluster["osparams_private_cluster"]
412 412

  
413
def DowngradeInstances(config_data):
414
  instances = config_data.get("instances", None)
415
  if not instances:
416
    raise Error("Cannot find the 'instances' key in the configuration")
417
  for (_, iobj) in instances.items():
418
    if "osparams_private" in iobj:
419
      del iobj["osparams_private"]
420

  
413 421
def DowngradeAll(config_data):
414 422
  # Any code specific to a particular version should be labeled that way, so
415 423
  # it can be removed when updating to the next version.
416 424
  config_data["version"] = version.BuildVersion(DOWNGRADE_MAJOR,
417 425
                                                DOWNGRADE_MINOR, 0)
418 426
  DowngradeCluster(config_data)
427
  DowngradeInstances(config_data)
419 428

  
420 429

  
421 430
def main():

Also available in: Unified diff