mirror of
https://github.com/gryf/boxpy.git
synced 2026-03-26 15:23:32 +01:00
Compare commits
2 Commits
1.5
...
8252e189cc
| Author | SHA1 | Date | |
|---|---|---|---|
| 8252e189cc | |||
| e6d4d8ab7a |
4
box.py
4
box.py
@@ -1039,7 +1039,7 @@ class Fedora(Image):
|
|||||||
|
|
||||||
class CentosStream(Image):
|
class CentosStream(Image):
|
||||||
URL = "https://cloud.centos.org/centos/%s-stream/%s/images/%s"
|
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"
|
CHKS = "CHECKSUM"
|
||||||
|
|
||||||
def __init__(self, vbox, version, arch, release):
|
def __init__(self, vbox, version, arch, release):
|
||||||
@@ -1193,7 +1193,7 @@ def vmcreate(args, conf=None):
|
|||||||
return 4
|
return 4
|
||||||
|
|
||||||
for key in ('distro', 'hostname', 'key', 'version', 'image'):
|
for key in ('distro', 'hostname', 'key', 'version', 'image'):
|
||||||
if not getattr(conf, key) is None:
|
if getattr(conf, key) is None:
|
||||||
continue
|
continue
|
||||||
if not vbox.setextradata(key, getattr(conf, key)):
|
if not vbox.setextradata(key, getattr(conf, key)):
|
||||||
return 5
|
return 5
|
||||||
|
|||||||
Reference in New Issue
Block a user