Skip to content

Commit

Permalink
size matching in device identification is a bit fuzzy to avoid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Depoix committed Jun 21, 2017
1 parent 40b7f06 commit 31231ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goto_cloud/migration_commander/device_identification.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def _map_unallocated_devices_onto_source_devices(self, unallocated_devices):
matching_device_id = next(
(
target_device_id
for target_device_id, target_device
in unallocated_devices.items() if target_device['size'] == source_device['size']
for target_device_id, target_device in unallocated_devices.items()
if round(target_device['size'] / 1024 ** 3) == round(source_device['size'] / 1024 ** 3)
),
None
)
Expand Down

0 comments on commit 31231ba

Please sign in to comment.