We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a18bd3b commit cca7a59Copy full SHA for cca7a59
2 files changed
transfer-ftp-s3/Makefile
@@ -29,7 +29,7 @@ logs:
29
@localstack logs > logs.txt
30
31
test-ci:
32
- make start install ready run; return_code=`echo $$?`;\
+ make install start ready run; return_code=`echo $$?`;\
33
make logs; make stop; exit $$return_code;
34
35
.PHONY: usage install start run stop ready logs test-ci
transfer-ftp-s3/test.py
@@ -1,8 +1,8 @@
1
import io
2
import time
3
-import uuid
4
import boto3
5
-from ftplib import FTP, FTP_TLS
+from ftplib import FTP
+import re
6
7
EDGE_URL = 'http://localhost:4566'
8
@@ -29,7 +29,8 @@ def create_transfer_api():
time.sleep(1)
server_id = rs['ServerId']
- port = int(server_id.split(':')[1])
+ match = re.match(r"^s-[a-z]*([0-9]{4,5})$", server_id)
+ port = int(match.group(1))
s3_client.create_bucket(Bucket=BUCKET)
36
0 commit comments