From 7af03a83f600d779599c73d3807ab6a0d2e70a22 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 9 May 2022 06:44:21 -0400 Subject: [PATCH] Common: Simplify attribute assignment in AWSInstance --- monkey/common/aws/aws_instance.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/monkey/common/aws/aws_instance.py b/monkey/common/aws/aws_instance.py index 9efd45b31..5746a93e3 100644 --- a/monkey/common/aws/aws_instance.py +++ b/monkey/common/aws/aws_instance.py @@ -24,11 +24,7 @@ class AWSInstance: fetch_thread.start() def _fetch_aws_instance_metadata(self): - metadata = fetch_aws_instance_metadata() - self._instance_id = metadata[0] - self._region = metadata[1] - self._account_id = metadata[2] - + (self._instance_id, self._region, self._account_id) = fetch_aws_instance_metadata() self._initialization_complete.set() @property