This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9a5f6d61559 fix: replace \s with space (#43849)
9a5f6d61559 is described below

commit 9a5f6d615590dbc3d40dcf5a2e584cf6d4f79938
Author: Lyndon Fan <[email protected]>
AuthorDate: Sat Nov 9 17:39:54 2024 +0000

    fix: replace \s with space (#43849)
    
    output is from running python file, which we know
---
 providers/pyproject.toml                                | 6 ------
 providers/src/airflow/providers/amazon/aws/hooks/eks.py | 4 ++--
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/providers/pyproject.toml b/providers/pyproject.toml
index 093cbbd5471..cdda548684a 100644
--- a/providers/pyproject.toml
+++ b/providers/pyproject.toml
@@ -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"]
@@ -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"]
diff --git a/providers/src/airflow/providers/amazon/aws/hooks/eks.py 
b/providers/src/airflow/providers/amazon/aws/hooks/eks.py
index 23fbd433309..40f1fe61936 100644
--- a/providers/src/airflow/providers/amazon/aws/hooks/eks.py
+++ b/providers/src/airflow/providers/amazon/aws/hooks/eks.py
@@ -85,8 +85,8 @@ COMMAND = """
                 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": 
\

Reply via email to