1
0
mirror of https://github.com/gryf/boxpy.git synced 2026-03-25 06:33:32 +01:00

2 Commits

Author SHA1 Message Date
8252e189cc Fix issue with condition for extra data 2022-11-16 09:11:27 +01:00
e6d4d8ab7a Fix minor issue with pattern for centos image 2022-11-16 09:10:49 +01:00

4
box.py
View File

@@ -1039,7 +1039,7 @@ class Fedora(Image):
class CentosStream(Image):
URL = "https://cloud.centos.org/centos/%s-stream/%s/images/%s"
IMG = '.*(CentOS-Stream-GenericCloud-%s-[0-9]+\.[0-9].%s.qcow2).*'
IMG = '.*(CentOS-Stream-GenericCloud-%s-[0-9]+.[0-9].%s.qcow2).*'
CHKS = "CHECKSUM"
def __init__(self, vbox, version, arch, release):
@@ -1193,7 +1193,7 @@ def vmcreate(args, conf=None):
return 4
for key in ('distro', 'hostname', 'key', 'version', 'image'):
if not getattr(conf, key) is None:
if getattr(conf, key) is None:
continue
if not vbox.setextradata(key, getattr(conf, key)):
return 5