Skip to content

Commit

Permalink
Check unmapped guest full name when guest id is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
keirazhang committed Feb 8, 2023
1 parent 728c44e commit 6202743
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions linux/check_os_fullname/validate_os_fullname.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# If the guest os full name is unmapped and displays OS detailed data on ESXi 6.7 GA and Update 1,
# or on ESXi 7.0.0, that's expected. Test passed.
- name: "Check unmapped guest OS full name"
- name: "Check unmapped guest OS full name on ESXi {{ esxi_version }} when guest id is empty"
block:
# The unmapped guest full name which at least includes Linux kernel version, OS pretty name
# For VM with newer VMware Tools, the unmapped guest full name also includes OS name, version id and build id
Expand All @@ -45,9 +45,11 @@
when:
- unmapped_guest_fullname is defined and unmapped_guest_fullname
- unmapped_guest_fullname in guestinfo_guest_full_name
when: >
(esxi_version is version('6.7.0', '==') and esxi_update_version | int < 2) or
esxi_version is version('7.0.0', '==')
when:
- not guestinfo_guest_id
- ((esxi_version is version('6.7.0', '==') and
esxi_update_version | int < 2) or
esxi_version is version('7.0.0', '=='))

- name: "Check guest id in VM's guest info with VMware Tools {{ vmtools_version }} on ESXi {{ esxi_version }}"
ansible.builtin.assert:
Expand Down

0 comments on commit 6202743

Please sign in to comment.