Common: Simplify attribute assignment in AWSInstance

This commit is contained in:
Mike Salvatore 2022-05-09 06:44:21 -04:00
parent d861328fbf
commit 7af03a83f6
1 changed files with 1 additions and 5 deletions

View File

@ -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