we updated the status from the status store too often, so that
if the guest agent was not running, the message would
change between 'no information' and 'not running'

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/qemu/AgentIPView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/AgentIPView.js b/www/manager6/qemu/AgentIPView.js
index 11afefb7..22db5f7c 100644
--- a/www/manager6/qemu/AgentIPView.js
+++ b/www/manager6/qemu/AgentIPView.js
@@ -137,8 +137,9 @@ Ext.define('PVE.qemu.AgentIPView', {
 
        if (me.agent && me.running && me.ipStore.isStopped) {
            me.ipStore.startUpdate();
+       } else if (me.ipStore.isStopped) {
+           me.updateStatus();
        }
-       me.updateStatus();
     },
 
     updateStatus: function(unsuccessful, defaulttext) {
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to