summaryrefslogtreecommitdiffstats
path: root/config-provisioning
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-03-02 11:44:17 +0100
committerHarald Musum <musum@yahooinc.com>2022-03-02 11:44:17 +0100
commiteff5d9e71d62f9762cc254b01711999747298ade (patch)
treebf9c3e5c2dbd7d8ad12769a93773d978f46c7d66 /config-provisioning
parent6dd5ec32de99b3ad560d9314db509f6dbe1929cd (diff)
Ignore architecture when adding or subtracting NodeResources
Need to solve this long-term, but ignore for now as provisoning will not work as this is now.
Diffstat (limited to 'config-provisioning')
-rw-r--r--config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java b/config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java
index 7be4f7809d5..113b32fc571 100644
--- a/config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java
+++ b/config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java
@@ -221,8 +221,7 @@ public class NodeResources {
diskGb - other.diskGb,
bandwidthGbps - other.bandwidthGbps,
this.diskSpeed.combineWith(other.diskSpeed),
- this.storageType.combineWith(other.storageType),
- this.architecture.combineWith(other.architecture));
+ this.storageType.combineWith(other.storageType));
}
public NodeResources add(NodeResources other) {
@@ -234,8 +233,7 @@ public class NodeResources {
diskGb + other.diskGb,
bandwidthGbps + other.bandwidthGbps,
this.diskSpeed.combineWith(other.diskSpeed),
- this.storageType.combineWith(other.storageType),
- this.architecture.combineWith(other.architecture));
+ this.storageType.combineWith(other.storageType));
}
private boolean isInterchangeableWith(NodeResources other) {
@@ -245,8 +243,6 @@ public class NodeResources {
return false;
if (this.storageType != StorageType.any && other.storageType != StorageType.any && this.storageType != other.storageType)
return false;
- if (this.architecture != other.architecture)
- return false;
return true;
}