Ignore expired devices when checking for GV1->GV2 migration capability.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2021-01-30 16:55:05 -05:00
1 parent a4cd30451c
commit 8f94ed68a3
2 files changed
+9 -2

No files matched your search

@@ -139,7 +139,9 @@ public class Account implements Principal {
}
public boolean isGv1MigrationSupported() {
return devices.stream().allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv1Migration());
return devices.stream()
.filter(Device::isEnabled)
.allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv1Migration());
}
public boolean isEnabled() {