Skip to content

Commit

Permalink
Update granulate_utils/metadata/cloud.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yonatan Goldschmidt <[email protected]>
  • Loading branch information
d3dave and Jongy authored Jul 10, 2023
1 parent 3ee53f9 commit 88e32d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion granulate_utils/metadata/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def get_aws_instance_metadata() -> Optional[AwsInstanceMetadata]:


def get_aws_container_metadata() -> Optional[AwsContainerMetadata]:
ecs_container_metadata_uri_v4 = os.environ["ECS_CONTAINER_METADATA_URI_V4"]
ecs_container_metadata_uri_v4 = os.environ.get("ECS_CONTAINER_METADATA_URI_V4")
if ecs_container_metadata_uri_v4 is None:
return None
response = send_request(ecs_container_metadata_uri_v4)
if response is None:
return None
Expand Down

0 comments on commit 88e32d3

Please sign in to comment.