Update argument func init s3

Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
Dmitriy Zayakin 2023-09-12 17:40:45 +03:00 committed by Dmitriy Zayakin
parent f7ef8cb881
commit be9b3f5855

View file

@ -194,6 +194,7 @@ def init_s3_credentials(
cluster: Cluster, cluster: Cluster,
policy: Optional[dict] = None, policy: Optional[dict] = None,
s3gates: Optional[list[S3Gate]] = None, s3gates: Optional[list[S3Gate]] = None,
container_placement_policy: Optional[str] = None,
): ):
gate_public_keys = [] gate_public_keys = []
bucket = str(uuid.uuid4()) bucket = str(uuid.uuid4())
@ -209,6 +210,7 @@ def init_s3_credentials(
wallet_password=wallet.password, wallet_password=wallet.password,
container_policy=policy, container_policy=policy,
container_friendly_name=bucket, container_friendly_name=bucket,
container_placement_policy=container_placement_policy,
).stdout ).stdout
aws_access_key_id = str( aws_access_key_id = str(
re.search(r"access_key_id.*:\s.(?P<aws_access_key_id>\w*)", issue_secret_output).group( re.search(r"access_key_id.*:\s.(?P<aws_access_key_id>\w*)", issue_secret_output).group(