Skip to content

Commit

Permalink
Fix VM datastore value when the datastore name has space (#623)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
keirazhang authored Aug 16, 2024
1 parent 2c4c1bd commit d56c24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/vm_get_vm_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
vm_files_path_ds: "{{ vm_config.config.files.logDirectory }}"
vm_dir_name: "{{ vm_config.config.files.logDirectory.split(']')[-1].strip(' \\/') }}"
vm_vmx_path: "{{ vm_config.config.files.vmPathName | regex_replace('\\[(.*)\\] ', '/vmfs/volumes/\\1/') }}"
datastore: "{{ vm_config.config.files.logDirectory.split(' ')[0].strip('['']') }}"
datastore: "{{ vm_config.config.files.logDirectory.split(']')[0].strip('[') }}"
vm_guest_id: "{{ vm_config.config.guestId }}"
vm_guest_os_version: "{{ vm_config.config.guestFullName }}"
vm_hardware_version: "{{ vm_config.config.version }}"
Expand Down

0 comments on commit d56c24d

Please sign in to comment.