Skip to content

Commit

Permalink
remove guest_id check when use template (ansible#55281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomorrow9 authored and ndclt committed Jun 7, 2019
1 parent c0225e2 commit 5a89405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/cloud/vmware/vmware_guest.py
Expand Up @@ -165,7 +165,7 @@
- " virtual machine with RHEL7 64 bit, will be 'rhel7_64Guest'"
- " virtual machine with CensOS 64 bit, will be 'centos64Guest'"
- " virtual machine with Ubuntu 64 bit, will be 'ubuntu64Guest'"
- This field is required when creating a virtual machine.
- This field is required when creating a virtual machine, not required when creating from the template.
- >
Valid values are referenced here:
U(http://pubs.vmware.com/vsphere-6-5/topic/com.vmware.wssdk.apiref.doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html)
Expand Down Expand Up @@ -866,7 +866,7 @@ def remove_vm(self, vm):

def configure_guestid(self, vm_obj, vm_creation=False):
# guest_id is not required when using templates
if self.params['template'] and not self.params['guest_id']:
if self.params['template']:
return

# guest_id is only mandatory on VM creation
Expand Down

0 comments on commit 5a89405

Please sign in to comment.