Revision 98d0b695 lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
1223 1223

  
1224 1224

  
1225 1225
def AssembleInstanceDisks(lu, instance, disks=None, ignore_secondaries=False,
1226
                           ignore_size=False):
1226
                          ignore_size=False, check=True):
1227 1227
  """Prepare the block devices for an instance.
1228 1228

  
1229 1229
  This sets up the block devices on all nodes.
......
1248 1248
  """
1249 1249
  device_info = []
1250 1250
  disks_ok = True
1251
  disks = ExpandCheckDisks(instance, disks)
1251
  if check:
1252
    disks = ExpandCheckDisks(instance, disks)
1252 1253

  
1253 1254
  # With the two passes mechanism we try to reduce the window of
1254 1255
  # opportunity for the race condition of switching DRBD to primary

Also available in: Unified diff