packer-templates icon indicating copy to clipboard operation
packer-templates copied to clipboard

test-system-info-output failing due to multi-line packer version o/p

Open yussufsh opened this issue 6 years ago • 4 comments

==> docker: Provisioning with shell script: packer-scripts/test-system-info-output
    docker: sudo: unable to resolve host image-create-ub
    docker: program packer version has 4 lines output
    docker:     Packer v1.3.2
    docker:
    docker:     Your version of Packer is out of date! The latest version
    docker:     is 1.3.3. You can update by downloading from www.packer.io/downloads.html
==> docker: Killing the container: ff9b935e13a7b11bf1d5c61141f32092ea20b904cd9ed87ec9e9c1f26cade01d
Build 'docker' errored: Script exited with non-zero exit status: 1

yussufsh avatar Dec 07 '18 10:12 yussufsh

Is it an option to use the latest packer version?

joepvd avatar Dec 07 '18 10:12 joepvd

Instead of packer version can we use packer --version? See the difference below.

# ./packer version
Packer v1.3.2
# ./packer --version
1.3.2

yussufsh avatar Dec 07 '18 11:12 yussufsh

@joepvd I am working on ppc64le, which does not yet have packer 1.3.3 binary released.

I tried the above changes in the packer-assests/*-system-info-commands.yml, works for me. Do you want to me to raise a PR for this?

yussufsh avatar Dec 07 '18 11:12 yussufsh

Yah, saw that there are no binaries released yet for ppc64le. A shame that packer complains about not having the newest release, if it is not available. I am good with your proposed change :+1:

joepvd avatar Dec 10 '18 11:12 joepvd