From e6e97f66c1127834a0026a6f5d2ee83bc040d9bb Mon Sep 17 00:00:00 2001
From: xietangxin <xietangxin@huawei.com>
Date: Tue, 30 Apr 2024 14:46:43 +0800
Subject: [PATCH] cadvisor_probe: fix int to str warnings

---
 .../extends/python.probe/cadvisor.probe/cadvisor_probe.py       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/probes/extends/python.probe/cadvisor.probe/cadvisor_probe.py b/src/probes/extends/python.probe/cadvisor.probe/cadvisor_probe.py
index c4dcb45..d31f7a6 100755
--- a/src/probes/extends/python.probe/cadvisor.probe/cadvisor_probe.py
+++ b/src/probes/extends/python.probe/cadvisor.probe/cadvisor_probe.py
@@ -118,7 +118,7 @@ class CadvisorProbe():
             else:
                 raise Exception('[cadvisor_probe]cAdvisor running but get info failed')
         whitelist_label = "-whitelisted_container_labels=" + get_meta_label_list()
-        interval = "--housekeeping_interval="+ period + "s" 
+        interval = "--housekeeping_interval="+ str(period) + "s"
         ps = subprocess.Popen(["/usr/bin/cadvisor", "-port", str(self.port),\
             "--store_container_labels=false", interval, whitelist_label,\
             DISABLE_METRICS_OPTION],\
-- 
2.28.0.windows.1

