Skip to content

Commit

Permalink
Update guestinfo_detailed_data on newer vSphere with latest VMware To…
Browse files Browse the repository at this point in the history
…ols (#576)

Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
keirazhang authored Apr 24, 2024
1 parent 884fda6 commit e9459fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/vm_get_guest_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
guestinfo_guest_full_name: "{{ vm_guestinfo.instance.guest.guestFullName }}"
guestinfo_guest_family: "{{ vm_guestinfo.instance.guest.guestFamily }}"
guestinfo_detailed_data: |-
{%- if vm_extra_config is defined -%}
{%- if vm_guestinfo.instance.guest.guestDetailedData is defined and vm_guestinfo.instance.guest.guestDetailedData -%}
{{ vm_guestinfo.instance.guest.guestDetailedData | replace('\"', '') }}
{%- elif vm_extra_config is defined -%}
{%- if 'guestOS.detailed.data' in vm_extra_config -%}{{ vm_extra_config['guestOS.detailed.data'] | replace('\"', '') }}
{%- elif 'guestInfo.detailed.data' in vm_extra_config -%}{{ vm_extra_config['guestInfo.detailed.data'] | replace('\"', '') }}
{%- endif -%}
Expand Down

0 comments on commit e9459fb

Please sign in to comment.