summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2022-10-19 18:08:02 +0200
committerGitHub <noreply@github.com>2022-10-19 18:08:02 +0200
commit3fc67dc76cd828d555ed1fb60812695bca864f02 (patch)
tree0472b3276a328a4a9685346c4a22ec465db6367a
parentMerge pull request #12887 from AlanCoding/more_rules (diff)
parentUse raw string to satisfy linter rules (diff)
downloadawx-3fc67dc76cd828d555ed1fb60812695bca864f02.tar.xz
awx-3fc67dc76cd828d555ed1fb60812695bca864f02.zip
Merge pull request #13081 from AlanCoding/raw_string
Use raw string to satisfy linter rules
-rw-r--r--awx/api/serializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/api/serializers.py b/awx/api/serializers.py
index 77e1bf37c1..b0f56077e9 100644
--- a/awx/api/serializers.py
+++ b/awx/api/serializers.py
@@ -4934,7 +4934,7 @@ class InstanceSerializer(BaseSerializer):
MaxLengthValidator(limit_value=250),
validators.UniqueValidator(queryset=Instance.objects.all()),
RegexValidator(
- regex='^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*\:)*?:?0*1$',
+ regex=r'^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*\:)*?:?0*1$',
flags=re.IGNORECASE,
inverse_match=True,
message="hostname cannot be localhost or 127.0.0.1",