Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
18df1c1162
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      hhh/aws-monitor/cl-test.py

+ 5 - 2
hhh/aws-monitor/cl-test.py

@@ -8,12 +8,15 @@ cmds=cmd.split(' ')
 cl=subprocess.Popen(cmds, stdout=subprocess.PIPE)
 lst=[]
 
+def proc_l(l):
+    return l.replace(',','').replace('\n','').strip()
 for l in io.TextIOWrapper(cl.stdout, encoding="utf-8"):
     if '"AccessKeyId":' in l:
-        lst.append(l)
+    
+        lst.append(proc_l(l))
 
     if '"EventName":' in l:
-        lst.append(l)
+        lst.append(proc_l(l))
 #lines = cl.stdout.readlines()
 #clstr=str(cl)
 #lines=clstr.split('\n')