Your Name il y a 3 ans
Parent
commit
18df1c1162
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  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')