summaryrefslogtreecommitdiff
path: root/tests/unittests/distros/test_user_data_normalize.py
diff options
context:
space:
mode:
authorChris Patterson <cpatterson@microsoft.com>2023-04-17 16:04:52 -0400
committerGitHub <noreply@github.com>2023-04-17 15:04:52 -0500
commitb71794094ac93942020b5f68f8f62900e1d09c97 (patch)
tree5e8fca660a1904bf62a0a1ea10ce7deba66e029a /tests/unittests/distros/test_user_data_normalize.py
parent34e8c914df666c937e48f5d1c3add0bd47e4e7eb (diff)
downloadcloud-init-git-b71794094ac93942020b5f68f8f62900e1d09c97.tar.gz
azure: introduce identity module (#2116)
- Add query_system_uuid() for getting system uuid from dmi in normalized (lower-cased) form. - Add byte_swap_system_uuid() to convert a system uuid for gen1 instances to the compute.vmId as presented by IMDS. - Add convert_system_uuid_to_vm() to convert system uuid to vm id depending on whether it is gen1 or gen2. - Add is_vm_gen1() to determine if VM is Azure's gen1 by checking for available of EFI (used in gen2). - Add query_vm_id() helper to get VM id without system uuid. - Move ChassisAssetTag from Azure helpers into identity. - Update DataSourceAzure._iid() to use this module. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'tests/unittests/distros/test_user_data_normalize.py')
0 files changed, 0 insertions, 0 deletions