Your Name 3 년 전
부모
커밋
4d3aee8228
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hhh/aws-monitor/cl-test.py

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

@@ -3,7 +3,7 @@ cmd='aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,Att
 cmds=cmd.split(' ')
 cl=subprocess.run(cmds, capture_output=True)
 
-lines=cl.readlines()
-
+clstr=str(cl)
+lines=clstr.split('\n')
 print(lines)