commit
9e514672dd
@ -2,6 +2,6 @@ from __future__ import unicode_literals
|
|||||||
from .responses import EC2Response
|
from .responses import EC2Response
|
||||||
|
|
||||||
|
|
||||||
url_bases = ["https?://ec2\.(.+)\.amazonaws\.com(|\.cn)"]
|
url_bases = [r"https?://ec2\.(.+)\.amazonaws\.com(|\.cn)"]
|
||||||
|
|
||||||
url_paths = {"{0}/": EC2Response.dispatch}
|
url_paths = {"{0}/": EC2Response.dispatch}
|
||||||
|
@ -651,7 +651,7 @@ class SimpleSystemManagerBackend(BaseBackend):
|
|||||||
label.startswith("aws")
|
label.startswith("aws")
|
||||||
or label.startswith("ssm")
|
or label.startswith("ssm")
|
||||||
or label[:1].isdigit()
|
or label[:1].isdigit()
|
||||||
or not re.match("^[a-zA-z0-9_\.\-]*$", label)
|
or not re.match(r"^[a-zA-z0-9_\.\-]*$", label)
|
||||||
):
|
):
|
||||||
invalid_labels.append(label)
|
invalid_labels.append(label)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user