Your Name 3 년 전
부모
커밋
18df1c1162
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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')