Node affinity rules are non-strict by default and of 'positive' affinity in the backend, so the redundant information can be removed from the request.
Signed-off-by: Daniel Kral <[email protected]> --- changes since v1: - new www/manager6/ha/rules/NodeAffinityRuleEdit.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/www/manager6/ha/rules/NodeAffinityRuleEdit.js b/www/manager6/ha/rules/NodeAffinityRuleEdit.js index aecaa276..a6ef7832 100644 --- a/www/manager6/ha/rules/NodeAffinityRuleEdit.js +++ b/www/manager6/ha/rules/NodeAffinityRuleEdit.js @@ -10,6 +10,15 @@ Ext.define('PVE.ha.rules.NodeAffinityInputPanel', { }, }, + onGetValues: function (values) { + let me = this; + + PVE.Utils.delete_if_default(values, 'strict', 0, me.isCreate); + PVE.Utils.delete_if_default(values, 'affinity', 'positive', me.isCreate); + + return me.callParent([values]); + }, + initComponent: function () { let me = this; -- 2.47.3
