[pdm-devel] [PATCH datacenter-manager] server: api: resources: fix subscription level for unknown remotes

Dominik Csapak d.csapak at proxmox.com
Tue Oct 14 11:53:27 CEST 2025


remotes where all nodes have 'unknown' subscription level should be
'unknown' not 'mixed'.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 server/src/api/resources.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/api/resources.rs b/server/src/api/resources.rs
index f4f56bcf..0a73c15b 100644
--- a/server/src/api/resources.rs
+++ b/server/src/api/resources.rs
@@ -623,7 +623,7 @@ fn map_node_subscription_list_to_state(
 
     match (minimum, mixed) {
         (SubscriptionLevel::None, _) => RemoteSubscriptionState::None,
-        (SubscriptionLevel::Unknown, false) => RemoteSubscriptionState::Mixed,
+        (SubscriptionLevel::Unknown, false) => RemoteSubscriptionState::Unknown,
         // treat unknown + active as active
         (SubscriptionLevel::Unknown, true) => RemoteSubscriptionState::Active,
         (_, true) => RemoteSubscriptionState::Mixed,
-- 
2.47.3





More information about the pdm-devel mailing list