Skip to content

Commit 5780c2a

Browse files
author
Patrick J. McNerthney
committed
Fix Import VPC example
1 parent 15752e8 commit 5780c2a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/import-existing-vpc/composition.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ spec:
5454
def aws_client(self, service):
5555
if not self._aws_session:
5656
self._aws_session = get_session()
57-
self._aws_clients = {}
58-
client = self._aws_clients.get(service)
59-
if not client:
60-
client = self._aws_session.create_client(service, str(self.spec.region))
61-
self._aws_clients[service] = client
62-
return client
57+
return self._aws_session.create_client(service, str(self.spec.region))
6358
6459
def tags(self, *args, **kwargs):
6560
tags = {}

0 commit comments

Comments
 (0)