cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

Show blob name when downloading #103

Closed dpb587 closed 7 years ago

dpb587 commented 7 years ago

When downloading blobs, show name/version instead of an empty string. Also removes blob ID from the description since retaining it made the message extra long and it's more of an internal value.

Instead of...

$ bosh create-release
-- Started downloading '' (5716ff8a-baca-4471-8598-1e7c16842f02 (sha1=d110588a4eefc593509929f844df190d5281e8ff))
-- Finished downloading '' (5716ff8a-baca-4471-8598-1e7c16842f02 (sha1=d110588a4eefc593509929f844df190d5281e8ff))
-- Started downloading '' (31cce289-07cb-45bb-ab27-e5d03532117f (sha1=d35bd8d8b45098791b4668433bd9878678b59df8))
-- Finished downloading '' (31cce289-07cb-45bb-ab27-e5d03532117f (sha1=d35bd8d8b45098791b4668433bd9878678b59df8))
-- Started downloading '' (7cb7513b-f63f-49b1-8ade-3a9c9f9a86f9 (sha1=aa9d548cb6c4d9ad536da532987eabd3550f1ece))
-- Finished downloading '' (7cb7513b-f63f-49b1-8ade-3a9c9f9a86f9 (sha1=aa9d548cb6c4d9ad536da532987eabd3550f1ece))

Show...

$ bosh create-release
-- Started downloading 'mysql/0687ba6d67528afdc81cfc8e46c1e31a33b8df7d' (sha1=d110588a4eefc593509929f844df190d5281e8ff)
-- Finished downloading 'mysql/0687ba6d67528afdc81cfc8e46c1e31a33b8df7d' (sha1=d110588a4eefc593509929f844df190d5281e8ff)
-- Started downloading 'legacy-build/ba156d253ad92a543027f02764abd343ced8e5a7' (sha1=d35bd8d8b45098791b4668433bd9878678b59df8)
-- Finished downloading 'legacy-build/ba156d253ad92a543027f02764abd343ced8e5a7' (sha1=d35bd8d8b45098791b4668433bd9878678b59df8)
-- Started downloading 'mc/1290a94a7934bab7c38b3e5d92527dc6219e0f89' (sha1=aa9d548cb6c4d9ad536da532987eabd3550f1ece)
-- Finished downloading 'mc/1290a94a7934bab7c38b3e5d92527dc6219e0f89' (sha1=aa9d548cb6c4d9ad536da532987eabd3550f1ece)

Thoughts?

cfdreddbot commented 7 years ago

Hey dpb587!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.