Revision c7c09ffa lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
1169 1169

  
1170 1170

  
1171 1171
def AssembleInstanceDisks(lu, instance, disks=None, ignore_secondaries=False,
1172
                           ignore_size=False):
1172
                          ignore_size=False, check=True):
1173 1173
  """Prepare the block devices for an instance.
1174 1174

  
1175 1175
  This sets up the block devices on all nodes.
......
1195 1195
  device_info = []
1196 1196
  disks_ok = True
1197 1197
  iname = instance.name
1198
  disks = ExpandCheckDisks(instance, disks)
1198
  if check:
1199
    disks = ExpandCheckDisks(instance, disks)
1199 1200

  
1200 1201
  # With the two passes mechanism we try to reduce the window of
1201 1202
  # opportunity for the race condition of switching DRBD to primary

Also available in: Unified diff