Skip to content

Commit

Permalink
fix: COMMAND string should be raw to avoid SyntaxWarning: invalid esc…
Browse files Browse the repository at this point in the history
…ape sequence '\s' (#38734)
  • Loading branch information
dabla authored Apr 8, 2024
1 parent 87fc581 commit bfaa4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/amazon/aws/hooks/eks.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class NodegroupStates(Enum):
NONEXISTENT = "NONEXISTENT"


COMMAND = """
COMMAND = r"""
output=$({python_executable} -m airflow.providers.amazon.aws.utils.eks_get_token \
--cluster-name {eks_cluster_name} {args} 2>&1)
Expand Down

0 comments on commit bfaa4f2

Please sign in to comment.