Skip to content

Commit

Permalink
Fix for large downloads (#83)
Browse files Browse the repository at this point in the history
* remove packer files

* fix for large downloads
  • Loading branch information
ahaydon authored May 21, 2019
1 parent b0fba14 commit d7b15bd
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 1,016 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ packer_cache/
# For built boxes
*.box
license.json
.vs
.vs
.vagrant

# keys
*.pfx
*.pem
2 changes: 1 addition & 1 deletion Qlik-Cli.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Qlik-Cli.psm1'

# Version number of this module.
ModuleVersion = '1.15.0'
ModuleVersion = '1.15.1'

# ID used to uniquely identify this module
GUID = '730275fa-35db-42e2-9400-eac7e3043ea4'
Expand Down
18 changes: 13 additions & 5 deletions functions/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,19 @@ function CallRestUri($method, $path, $extraParams) {
If( $params.Body ) { Write-Verbose $params.Body }

Write-Verbose "Calling $method for $path"
If( $null -eq $script:webSession ) {
$result = Invoke-RestMethod -Method $method -Uri $path @params -SessionVariable webSession
$script:webSession = $webSession
} else {
$result = Invoke-RestMethod -Method $method -Uri $path @params -WebSession $script:webSession
try {
If( $null -eq $script:webSession ) {
$result = Invoke-RestMethod -Method $method -Uri $path @params -SessionVariable webSession
$script:webSession = $webSession
} elseif ($params.OutFile) {
$result = Invoke-WebRequest -Method $method -Uri $path @params -WebSession $script:webSession
} else {
$result = Invoke-RestMethod -Method $method -Uri $path @params -WebSession $script:webSession
}
}
catch {
throw $_
return
}

if( !$rawOutput ) {
Expand Down
206 changes: 0 additions & 206 deletions packer/2012r2-virtualbox.json

This file was deleted.

22 changes: 0 additions & 22 deletions packer/LICENSE

This file was deleted.

30 changes: 0 additions & 30 deletions packer/README.md

This file was deleted.

Loading

0 comments on commit d7b15bd

Please sign in to comment.