The `getStatus` function was not returning the corresponding `PveResourceStatusType` when the status was `paused`. This commit adds the missing status check.
Signed-off-by: Shan Shaji <s.sh...@proxmox.com> --- changes since v1: * Removed all formatting changes lib/src/models/pve_cluster_resources_model.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/models/pve_cluster_resources_model.dart b/lib/src/models/pve_cluster_resources_model.dart index 16e18df..b92c1ef 100644 --- a/lib/src/models/pve_cluster_resources_model.dart +++ b/lib/src/models/pve_cluster_resources_model.dart @@ -69,6 +69,8 @@ abstract class PveClusterResourcesModel return PveResourceStatusType.stopped; } + if(status == 'paused') return PveResourceStatusType.paused; + return PveResourceStatusType.unknown; } } -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel