Revision 887b52e8 lib/cmdlib.py

b/lib/cmdlib.py
599 599
    })
600 600

  
601 601

  
602
def _AnnotateDiskParams(instance, devs, cfg):
603
  """Little helper wrapper to the rpc annotation method.
604

  
605
  @param instance: The instance object
606
  @type devs: List of L{objects.Disk}
607
  @param devs: The root devices (not any of its children!)
608
  @param cfg: The config object
609
  @returns The annotated disk copies
610
  @see L{rpc.AnnotateDiskParams}
611

  
612
  """
613
  return rpc.AnnotateDiskParams(instance.disk_template, devs,
614
                                cfg.GetInstanceDiskParams(instance))
615

  
616

  
602 617
def _CheckInstancesNodeGroups(cfg, instances, owned_groups, owned_nodes,
603 618
                              cur_group_uuid):
604 619
  """Checks if node groups for locked instances are still correct.

Also available in: Unified diff