lib/veewee/provider/vmfusion/box/helper/buildinfo.rb in veewee-0.3.7 vs lib/veewee/provider/vmfusion/box/helper/buildinfo.rb in veewee-0.3.9
- old
+ new
@@ -35,13 +35,17 @@
#
#
def transfer_buildinfo(options)
super(options)
+ # Initialize download_tools to true if null
+ if definition.vmfusion[:vm_options]['download_tools'].nil?
+ definition.vmfusion[:vm_options]['download_tools'] = true
+ end
+
# When we get here, ssh is available and no postinstall scripts have been executed yet
# So we begin by transferring the ISO file of the vmware tools
-
- if not (definition.winrm_user && definition.winrm_password)
+ if !(definition.winrm_user && definition.winrm_password) && definition.vmfusion[:vm_options]['download_tools']
# with windows, we just use the mounted volume
env.logger.info "About to transfer vmware tools iso buildinfo to the box #{name} - #{ip_address} - #{ssh_options}"
iso_image=guest_iso_path
if File.exists?(iso_image)
self.copy_to_box(iso_image,File.basename(iso_image))