[pve-devel] [PATCH manager 3/3] correctly update qemu ip information

Dominik Csapak d.csapak at proxmox.com
Tue May 22 14:02:35 CEST 2018


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.csapak at 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





More information about the pve-devel mailing list