提交 28e922a5 编写于 作者: C Cleber Rosa

avocado.utils.vmimage: adapt to arm64 arch name on ubuntu and debian

Those distros provide images for aarch64, but call them arm64 instead.
Let's allow the use of either name.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 0d52ec3a
......@@ -211,6 +211,9 @@ class UbuntuImageProvider(ImageProviderBase):
# Ubuntu uses 'amd64' instead of 'x86_64'
if arch == 'x86_64':
arch = 'amd64'
# and 'arm64' instead of 'aarch64'
elif arch == 'aarch64':
arch = 'arm64'
super(UbuntuImageProvider, self).__init__(version, build, arch)
self.url_versions = 'http://cloud-images.ubuntu.com/releases/'
......@@ -230,6 +233,9 @@ class DebianImageProvider(ImageProviderBase):
# Debian uses 'amd64' instead of 'x86_64'
if arch == 'x86_64':
arch = 'amd64'
# and 'arm64' instead of 'aarch64'
elif arch == 'aarch64':
arch = 'arm64'
super(DebianImageProvider, self).__init__(version, build, arch)
self.url_versions = 'https://cdimage.debian.org/cdimage/openstack/'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册