While using this module to gather the snapshot info, in cases where the snapshot name has date and time mentioned too the module is converting the date into unreadable format since I'm using this as a variable in the subsequent task to delete the snapshots
Ex: "name": "VM Snapshot 8%2f23%2f2023, 8:38:26 AM",
the actual name is like this
"VM Snapshot 11/2/2023, 10:31:24 AM'
ISSUE TYPE
Bug Report
COMPONENT NAME
This is how the module is being used
name: Gather snapshot information about the virtual machine
vmware_guest_snapshot_info:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ""
folder: ""
name: "{{ item }}"
validate_certs: no
register: snapshot_info
ignore_errors: true
loop: "{{ guest_vm_list }}"
Here the guest_vm list is gathered from VM_info module by filtereing out only the guest VM's of respective vCenter
Please note that the example given in the time is not from the same 2 VM's it's from 2 different guest VM's, the idea was to just give the example of the date is getting converted
SUMMARY
While using this module to gather the snapshot info, in cases where the snapshot name has date and time mentioned too the module is converting the date into unreadable format since I'm using this as a variable in the subsequent task to delete the snapshots
Ex: "name": "VM Snapshot 8%2f23%2f2023, 8:38:26 AM", the actual name is like this "VM Snapshot 11/2/2023, 10:31:24 AM'
ISSUE TYPE
COMPONENT NAME
This is how the module is being used
name: Gather snapshot information about the virtual machine vmware_guest_snapshot_info: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" datacenter: "" folder: "" name: "{{ item }}" validate_certs: no register: snapshot_info ignore_errors: true loop: "{{ guest_vm_list }}"
Here the guest_vm list is gathered from VM_info module by filtereing out only the guest VM's of respective vCenter
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 8
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS