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
This commit is contained in:
Gary Kotton 2015-04-03 21:26:58 -07:00
parent 183cd88cb2
commit 72bd1519c9
1 changed files with 1 additions and 1 deletions

View File

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