Adrien Delorme
0ac7b64364
fix panic of the future using a mutex instead of some atomic calls + more docs
2018-09-06 18:12:15 +02:00
Adrien Delorme
8a851efcc8
progressbar: more godocs
2018-09-06 17:01:14 +02:00
Adrien Delorme
32cacad273
remove comment that is not true anymore
2018-09-06 16:50:47 +02:00
Adrien Delorme
bb59a70e8f
progressbar: use int64 instead of uint64
...
* it's what's used for file sizes and used lib
2018-09-06 16:49:15 +02:00
Adrien Delorme
f9c58e2b1f
download: defer progress bar Finish
2018-09-06 16:38:28 +02:00
Adrien Delorme
3842f85eb4
download: remove close calls that are already defered
2018-09-06 16:30:35 +02:00
Adrien Delorme
f3c923c47d
add tests for progress bar rpc calls
2018-09-06 16:15:09 +02:00
Adrien Delorme
6d3e36e6ea
simplify remote progress bar as we are using a single instance
2018-09-06 16:14:59 +02:00
Adrien Delorme
d89e1133c3
use freshly merged random.AlphaNum instead of our own random
2018-09-06 15:55:19 +02:00
Adrien Delorme
23762a1810
fix tests for common/download_test.go
2018-09-06 15:53:59 +02:00
Adrien Delorme
42561cf777
packer/rpc/ui_test.go: test progress bar too
2018-09-06 15:53:59 +02:00
Adrien Delorme
5b66069da0
tests: remove Ui stubs to use packer.NoopUi to deduplicate code
2018-09-06 15:53:59 +02:00
Adrien Delorme
7f50228080
remove old/unused progress code
2018-09-06 15:53:59 +02:00
Adrien Delorme
059e14fe42
put back usefull debug
2018-09-06 15:53:59 +02:00
Adrien Delorme
7efe3cac3d
todos
2018-09-06 15:53:59 +02:00
Adrien Delorme
a11f985e3c
revert unecessary check
2018-09-06 15:53:59 +02:00
Adrien Delorme
a9d302def8
removed debug logs
2018-09-06 15:53:59 +02:00
Adrien Delorme
408578507f
also prefix bar with number of items processing
2018-09-06 15:53:59 +02:00
Adrien Delorme
541c68aed5
add StackableProgressBar struct that will refresh/show dl status for multiple files
...
* simplified the downloader interface, and removed the total/current values from them
* downloaders use a proxy reader that will add all read bytes to progress
* removed unused const mtu
* DownloadClient doesn't need a downloader, so I removed it too
2018-09-06 15:53:59 +02:00
Adrien Delorme
9b07d7670e
use no ops for ansible ui & MachineReadableUi
2018-09-06 15:53:59 +02:00
Adrien Delorme
fd7cb47adc
use proxy reader for download progress & stop storing total/current in downloaders
2018-09-06 15:53:59 +02:00
Adrien Delorme
ddd96c513b
first draft at self refreshing loading bar centralized/controlled by Ui
2018-09-06 15:53:59 +02:00
Megan Marsh
3940cd9c7f
Merge pull request #6657 from hashicorp/fix_6483
...
randomise temporary AMI name to build encrypted AMIs
2018-09-05 12:49:23 -07:00
Megan Marsh
63dfb1db91
fix default ssh bastion port in docs
2018-09-05 11:29:20 -07:00
Adrien Delorme
5a8af5500b
random: optimize allocation & simplify loop
2018-09-05 10:27:02 +02:00
Adrien Delorme
4682b3a9d2
refactor possible random strings into common/random
2018-09-05 10:26:52 +02:00
Adrien Delorme
b80e1d51c6
aws: when building an AMI with 'encrypt_boot: true', randomize the name of the temporary AMI
2018-09-05 10:24:28 +02:00
Adrien Delorme
170b2f3383
builder/azure/common.RandomString-> common/random.String
...
* to share them
* also removed unused PassworString func & arm.TempPasswordAlphabet package const
2018-09-05 10:24:28 +02:00
Sargun Dhillon
902497d6ce
Allow users to build hvm images from pv images to have ena_support
2018-09-04 18:16:52 -07:00
Megan Marsh
cfbba44fdd
Merge pull request #6667 from hashicorp/fix_4538
...
Update docs to clarify keep_registered defaults
2018-09-04 15:28:04 -07:00