Revision 74676af4 lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
1259 1259

  
1260 1260

  
1261 1261
def AssembleInstanceDisks(lu, instance, disks=None, ignore_secondaries=False,
1262
                           ignore_size=False):
1262
                          ignore_size=False, check=True):
1263 1263
  """Prepare the block devices for an instance.
1264 1264

  
1265 1265
  This sets up the block devices on all nodes.
......
1284 1284
  """
1285 1285
  device_info = []
1286 1286
  disks_ok = True
1287
  disks = ExpandCheckDisks(instance, disks)
1287
  if check:
1288
    disks = ExpandCheckDisks(instance, disks)
1288 1289

  
1289 1290
  # With the two passes mechanism we try to reduce the window of
1290 1291
  # opportunity for the race condition of switching DRBD to primary

Also available in: Unified diff