提交 3aae8506 编写于 作者: A Amador Pahim

vmimage: add JeOS Image Provider

WIth the new repository, now it is possible to add our own JeOS Image
Provider to the vmimage module.
Signed-off-by: NAmador Pahim <apahim@redhat.com>
上级 17554539
......@@ -222,6 +222,25 @@ class DebianImageProvider(ImageProviderBase):
self.image_pattern = 'debian-{version}-openstack-{arch}.qcow2$'
class JeosImageProvider(ImageProviderBase):
"""
JeOS Image Provider
"""
name = 'JeOS'
def __init__(self, version='[0-9]+', build=None,
arch=os.uname()[4]):
# JeOS uses '64' instead of 'x86_64'
if arch == 'x86_64':
arch = '64'
super(JeosImageProvider, self).__init__(version, build, arch)
self.url_versions = 'http://avocado-project.org/data/assets/jeos/'
self.url_images = self.url_versions + '{version}/'
self.image_pattern = 'jeos-{version}-{arch}.qcow2.xz$'
class Image(object):
def __init__(self, name, url, version, arch, checksum, algorithm,
cache_dir):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册