Skip to content

Commit

Permalink
fix: replace \s with space
Browse files Browse the repository at this point in the history
output is from running python file, which we know
  • Loading branch information
LyndonFan committed Nov 9, 2024
1 parent 229750d commit 82cb738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions providers/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ extend-exclude = [
# Ignore Doc rules et al for anything outside of tests
"!src/*" = ["D", "TID253", "S101", "TRY002"]

# https://github.com/apache/airflow/issues/39252
"src/airflow/providers/amazon/aws/hooks/eks.py" = ["W605"]

# All of the modules which have an extra license header (i.e. that we copy from another project) need to
# ignore E402 -- module level import not at top level
"tests/amazon/aws/auth_manager/security_manager/test_aws_security_manager_override.py" = ["E402"]
Expand Down Expand Up @@ -93,6 +90,3 @@ extend-exclude = [
"tests/qdrant/operators/test_qdrant.py" = ["E402"]
"tests/snowflake/operators/test_snowflake_sql.py" = ["E402"]
"tests/yandex/**/*.py" = ["E402"]

# https://github.com/apache/airflow/issues/39252
"airflow/providers/amazon/aws/hooks/eks.py" = ["W605"]
4 changes: 2 additions & 2 deletions providers/src/airflow/providers/amazon/aws/hooks/eks.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class NodegroupStates(Enum):
exit 1
fi
expiration_timestamp=$(echo "$output" | grep -oP 'expirationTimestamp:\s*\K[^,]+')
token=$(echo "$output" | grep -oP 'token:\s*\K[^,]+')
expiration_timestamp=$(echo "$output" | grep -oP 'expirationTimestamp: \\K[^,]+')
token=$(echo "$output" | grep -oP 'token: \\K[^,]+')
json_string=$(printf '{{"kind": "ExecCredential","apiVersion": \
"client.authentication.k8s.io/v1alpha1","spec": {{}},"status": \
Expand Down

0 comments on commit 82cb738

Please sign in to comment.