Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard for empty vagrant authorized_keys file #257

Closed
wants to merge 1 commit into from
Closed

Guard for empty vagrant authorized_keys file #257

wants to merge 1 commit into from

Conversation

indigo423
Copy link

It could be possible the wget command runs in an error and creates an empty authorized_keys file. The exit code is 0 and doesn't stop the build process. See example below by having issues resolving the raw.githubusercontent.com address:

Provisioning with shell script: scripts/common/vagrant.sh
virtualbox-iso: --2014-08-25 10:18:06--  https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub
virtualbox-iso:   Resolving raw.githubusercontent.com... failed: Name or service not known.
virtualbox-iso: wget: unable to resolve host address "raw.githubusercontent.com"
virtualbox-iso: Provisioning with shell script: scripts/common/vmtools.sh
virtualbox-iso: Verifying archive integrity... All good.

It could be possible the `wget` command runs in an error and creates an empty `authorized_keys` file. The exit code is 0 and doesn't stop the build process. See example below by having issues resolving the raw.githubusercontent.com address:

    Provisioning with shell script: scripts/common/vagrant.sh
    virtualbox-iso: --2014-08-25 10:18:06--  https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub
    virtualbox-iso:   Resolving raw.githubusercontent.com... failed: Name or service not known.
    virtualbox-iso: wget: unable to resolve host address "raw.githubusercontent.com"
    virtualbox-iso: Provisioning with shell script: scripts/common/vmtools.sh
    virtualbox-iso: Verifying archive integrity... All good.
@juliandunn
Copy link
Contributor

See my comment on #258.

@cheeseplus
Copy link
Contributor

So even though this should be something wget bubbles up I'm all for extra checks that don't cause anymore issues - could this be rebased?

@cheeseplus
Copy link
Contributor

Can't merge this any longer so closing but will credit changes in new PR

@cheeseplus
Copy link
Contributor

Oh wait looks like this was taken care of inadvertently by another commit.

@cheeseplus cheeseplus closed this Nov 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants