VMware: remove redundant check for block devices

block_device_info_get_mapping will return [] or
a list of block devices. There is no need to check the size
of the array.

Change-Id: Id07c9a79e5144f8199b4092febb0e1e5f41096d2
changes/41/170641/10
Gary Kotton 8 years ago
parent 183cd88cb2
commit 72bd1519c9

@ -637,7 +637,7 @@ class VMwareVMOps(object):
else:
self._use_disk_image_as_full_clone(vm_ref, vi)
if len(block_device_mapping) > 0:
if block_device_mapping:
msg = "Block device information present: %s" % block_device_info
# NOTE(mriedem): block_device_info can contain an auth_password
# so we have to scrub the message before logging it.

Loading…
Cancel
Save