packer-cn/common
Hannu Piki 3ffaf551c0 Fixing Hyper-V ISO builder CopyExportedVirtualMachine PowerShell
Script wasn't able to handle path that Packer used to create VM in the first place:
"==> hyperv-iso: Copying to output dir...
==> hyperv-iso: Error exporting vm: PowerShell error: Move-Item : An object at the specified path C:\Users\HANNU~1.PIK does not exist.
==> hyperv-iso: At C:\Users\hannu.piki\AppData\Local\Temp\ps520830935.ps1:13 char:1
==> hyperv-iso: + Move-Item -Path "$srcPath/$vhdDirName" -Destination $dstPath -Verbose
==> hyperv-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> hyperv-iso:     + CategoryInfo          : InvalidArgument: (:) [Move-Item], PSArgumentException
==> hyperv-iso:     + FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.MoveItemCommand"

Used path was: C:\Users\HANNU~1.PIK\AppData\Local\Temp\packerhv616791918\export253729206\2016min
Real path was: C:\Users\hannu.piki\AppData\Local\Temp\packerhv616791918\export253729206\2016min
2018-03-29 18:34:14 +03:00
..
json common/json: add Unmarshal with method with syntax errors 2013-08-09 16:50:24 -07:00
powershell Fixing Hyper-V ISO builder CopyExportedVirtualMachine PowerShell 2018-03-29 18:34:14 +03:00
ssh code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh 2015-05-28 08:17:49 -07:00
test-fixtures Ack! Forgot to include the test-fixtures/SomeDir/myfile.txt file... 2018-02-02 20:44:22 -06:00
uuid Simplifies the implementation of common/uuid 2013-10-23 23:05:02 +01:00
config.go Inverted the logic of FileExistsLocally as suggested by @SwampDragons as remote URLs are assumed to exist locally. 2018-02-02 20:17:24 -06:00
config_test.go Removed an extra '/' from the TestFileExistsLocally test in common/config_test.go 2018-02-02 20:36:08 -06:00
download.go Split up DownloadableURL() into it's individual components: SupportedURL(), DownloadableURL(), and ValidatedURL(). Updated all instances of DownloadableURL() to point to ValidatedURL(). Reverted the tests that are based on un-supported protocols. 2018-01-16 13:37:32 -06:00
download_test.go Removed implementation of the ftp protocol and the usage of cheggaaa's progress-bar as suggested by @SwampDragons. Replaced some of the old smoke-tests that were based on the ftp-protocol non-existing with a "non-existent://" protocol that's guaranteed to not exist. 2018-01-16 13:37:31 -06:00
floppy_config.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
floppy_config_test.go tests actually test the floppies 2016-07-27 21:59:21 +01:00
http_config.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
http_config_test.go Refactor http server config into common 2015-11-01 14:45:47 -08:00
iso_config.go Split up DownloadableURL() into it's individual components: SupportedURL(), DownloadableURL(), and ValidatedURL(). Updated all instances of DownloadableURL() to point to ValidatedURL(). Reverted the tests that are based on un-supported protocols. 2018-01-16 13:37:32 -06:00
iso_config_test.go iso_config: allow for subdirs in hash sum files 2017-11-13 09:28:43 +02:00
multistep_debug.go fix imports 2018-01-24 17:09:17 -08:00
multistep_runner.go Wire context through misc steps 2018-01-24 17:09:17 -08:00
packer_config.go Add -on-error command line argument to allow preserving artifacts on builder errors 2016-09-16 12:15:00 +00:00
retry.go builder/virtualbox-ovf retry removing VM. 2017-10-25 10:27:33 -07:00
retry_test.go post-processor/vagrant-cloud: try upload once 2017-06-12 17:34:32 -07:00
step_create_floppy.go fix imports 2018-01-24 17:09:17 -08:00
step_create_floppy_test.go test fixes WIP 2018-01-24 17:09:17 -08:00
step_download.go spelling: regular 2018-03-14 02:19:10 +00:00
step_download_test.go fix imports 2018-01-24 17:09:17 -08:00
step_http_server.go allow users of AWS to use the dynamically-generated admin password which we use as the winRM password as an elevated password in the Powershell provisioner, as well as an environment variable in same provisoner. 2018-03-14 15:58:12 -07:00
step_provision.go fix imports 2018-01-24 17:09:17 -08:00
step_provision_test.go fix imports 2018-01-24 17:09:17 -08:00