Skip to content

Commit 8daf6d9

Browse files
committed
fix: avoid using incorrect logger
1 parent b56f6de commit 8daf6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testinfra/test_ami.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def gzip_then_base64_encode(s: str) -> str:
231231
)[0]
232232
instance.wait_until_running()
233233

234-
logger = EC2InstanceConnectLogger(debug=False)
235-
temp_key = EC2InstanceConnectKey(logger.get_logger())
234+
ec2logger = EC2InstanceConnectLogger(debug=False)
235+
temp_key = EC2InstanceConnectKey(ec2logger.get_logger())
236236
ec2ic = boto3.client("ec2-instance-connect", region_name="ap-southeast-1")
237237
response = ec2ic.send_ssh_public_key(
238238
InstanceId=instance.id,

0 commit comments

Comments
 (0)