Azure: share the image vhd architecture detection

This commit is contained in:
Lili Deng 2022-12-14 01:13:46 +08:00 коммит произвёл LiliDeng
Родитель ab716fbdc7
Коммит 4d3f14562b
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -358,6 +358,7 @@ class AzurePlatform(Platform):
features.ACC, features.ACC,
features.IsolatedResource, features.IsolatedResource,
features.VhdGeneration, features.VhdGeneration,
features.Architecture,
features.Nfs, features.Nfs,
] ]
@ -2478,14 +2479,19 @@ class AzurePlatform(Platform):
generation = _get_vhd_generation(image_info) generation = _get_vhd_generation(image_info)
node_space.features.add(features.VhdGenerationSettings(gen=generation)) node_space.features.add(features.VhdGenerationSettings(gen=generation))
node_space.features.add(
features.ArchitectureSettings(arch=image_info.architecture)
)
elif azure_runbook.shared_gallery: elif azure_runbook.shared_gallery:
azure_runbook.shared_gallery = self._parse_shared_gallery_image( azure_runbook.shared_gallery = self._parse_shared_gallery_image(
azure_runbook.shared_gallery azure_runbook.shared_gallery
) )
generation = _get_gallery_image_generation( sig = self._get_detailed_sig(azure_runbook.shared_gallery)
self._get_detailed_sig(azure_runbook.shared_gallery) generation = _get_gallery_image_generation(sig)
)
node_space.features.add(features.VhdGenerationSettings(gen=generation)) node_space.features.add(features.VhdGenerationSettings(gen=generation))
node_space.features.add(
features.ArchitectureSettings(arch=sig.architecture)
)
elif azure_runbook.vhd: elif azure_runbook.vhd:
node_space.features.add( node_space.features.add(
features.VhdGenerationSettings(gen=azure_runbook.hyperv_generation) features.VhdGenerationSettings(gen=azure_runbook.hyperv_generation)