Add amd64 to arch.canonicalize()
Allows mapping 'amd64' to 'x86_64'. Change-Id: I0b8a527bacc2d3b4308a1eb2ce3b6d1efd71e487 Closes-Bug: 1362699
This commit is contained in:
parent
8021b46c66
commit
17b08b4216
@ -153,6 +153,9 @@ def canonicalize(name):
|
||||
if newname in ("x86_32", "x86_32p"):
|
||||
newname = I686
|
||||
|
||||
if newname == "amd64":
|
||||
newname = X86_64
|
||||
|
||||
if not is_valid(newname):
|
||||
raise exception.InvalidArchitectureName(arch=name)
|
||||
|
||||
|
@ -47,6 +47,9 @@ class ArchTest(test.NoDBTestCase):
|
||||
def test_canonicalize_i386(self):
|
||||
self.assertEqual(arch.I686, arch.canonicalize("i386"))
|
||||
|
||||
def test_canonicalize_amd64(self):
|
||||
self.assertEqual(arch.X86_64, arch.canonicalize("amd64"))
|
||||
|
||||
def test_canonicalize_case(self):
|
||||
self.assertEqual(arch.X86_64, arch.canonicalize("X86_64"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user