Skip to content

Commit 0a3d93c

Browse files
committed
ec2 _find_image_serial: support serials in YYYYMMDD.n format
1 parent 0a55726 commit 0a3d93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycloudlib/ec2/cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _find_image_serial(
216216
raise Exception("Could not find image: {}".format(image_id))
217217

218218
image_name = images["Images"][0].get("Name", "")
219-
serial_regex = r"ubuntu/.*/.*/.*-(?P<serial>\d+)$"
219+
serial_regex = r"ubuntu/.*/.*/.*-(?P<serial>\d+(\.\d+)?)$"
220220
serial_match = re.match(serial_regex, image_name)
221221

222222
if not serial_match:

0 commit comments

Comments
 (0)