lib/fog/vsphere/requests/compute/upload_iso.rb in fog-vsphere-1.9.0 vs lib/fog/vsphere/requests/compute/upload_iso.rb in fog-vsphere-1.9.1

- old
+ new

@@ -20,10 +20,10 @@ options = upload_iso_check_options(options) datastore = get_raw_datastore(options['datastore'], options['datacenter']) datacenter = get_raw_datacenter(options['datacenter']) filename = options['filename'] || File.basename(options['local_path']) unless datastore.exists? options['upload_directory']+'/' - @connection.serviceContent.fileManager.MakeDirectory :name => "[#{options['datastore']}] #{options['upload_directory']}", + connection.serviceContent.fileManager.MakeDirectory :name => "[#{options['datastore']}] #{options['upload_directory']}", :datacenter => datacenter, :createParentDirectories => false end datastore.upload options['upload_directory']+'/'+filename, options['local_path'] datastore.exists? options['upload_directory']+'/'+filename