Skip to content

Commit

Permalink
Run linter on recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN committed Jul 15, 2021
1 parent eb2cd14 commit 7bbc574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def detect(self) -> "Resource":
if len(line) > _CONTAINER_ID_LENGTH:
container_id = line[-_CONTAINER_ID_LENGTH:]
except Exception as e:
logger.warn(f"AwsEcsDetector failed to get container Id: {e}. Creating resource without it.")
logger.warn(
f"AwsEcsDetector failed to get container Id: {e}. Creating resource without it."
)

# NOTE: (NathanielRN) Should ResourceDetectors use Resource.create() to pull in the environment variable?
# `OTELResourceDetector` doesn't do this...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def _get_cluster_info(cred_value, cert_data):

def _get_cluster_name():
cred_value = _get_k8s_cred_value()
with open("/var/run/secrets/kubernetes.io/serviceaccount/ca.crt") as cert_file:
with open(
"/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
) as cert_file:
k8_cert_data = cert_file.read()
if not _is_Eks(cred_value, k8_cert_data):
return Resource.get_empty()
Expand Down

0 comments on commit 7bbc574

Please sign in to comment.