> @@ -272,7 +272,7 @@ public int compare(Hardware h1, Hardware h2) {
> .compare(getBootableDeviceType(h1),
> getBootableDeviceType(h2));
> if (!volumes1.isEmpty() && !volumes2.isEmpty() &&
> volumes1.size() == volumes2.size()) {
@andreaturli Consider
h1: cores=1, ram=256, etc., volumes = [volume(type=FOO)]
h2: cores=1, ram=256, etc., volumes = []
These will compare to 0 currently. I expect them to compare to either -1 or +1
since they are different.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/831/files#r35804166