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

Bug in box_check_update code #237

Closed
rayterrill opened this issue Jul 29, 2016 · 6 comments
Closed

Bug in box_check_update code #237

rayterrill opened this issue Jul 29, 2016 · 6 comments
Assignees
Labels
Milestone

Comments

@rayterrill
Copy link
Contributor

The "box_check_update" section of code in templates/Vagrantfile.erb is resulting in the quoted value of whatever you've entered (true/false) to be transferred to the Vagrantfile, and it isn't working correctly (i.e. false becomes "false", which is not the same as false).

<% if !config[:box_check_update].nil? %>
  c.vm.box_check_update = "<%= config[:box_check_update] %>"
<% end %>

Validated that removing the quotes from the Vagrantfile manually results in the correct behavior in Vagrant - it no longer checks for an updated box on a 'vagrant up'. This is probably just as simple as removing the quotes, like:

<% if !config[:box_check_update].nil? %>
  c.vm.box_check_update = <%= config[:box_check_update] %>
<% end %>

Backstory: We're behind a proxy and using Windows, so these kind of things kill us. :(

@mwrock
Copy link
Member

mwrock commented Aug 3, 2016

I totally get the "false" != false but it strikes me as weird that this ever worked. Looking through history this was edited a year ago by @roderickrandolph via #182 to make sure false made it in.

@rayterrill
Copy link
Contributor Author

Also not sure how this ever worked. Also apologies - I'm a GitHub n00b (this was my first ever PR!) so my fault if I messed something up or not understanding how something works.

I manually made this change today in my local machine's Vagrantfile.erb because this is killing me, and things are working as expected.

@jjasghar
Copy link

jjasghar commented Aug 3, 2016

@rayterrill congrats on your first PR! Don't worry everyone is a beginner at some point; and we all gain experience at different rates.

Welcome and please continue to contribute, we are all better because you are here.

@mwrock
Copy link
Member

mwrock commented Aug 3, 2016

:+100: to what @jjasghar said

@mwrock
Copy link
Member

mwrock commented Aug 3, 2016

See im still learning to emoticon!

@rayterrill
Copy link
Contributor Author

Thanks all!

@cheeseplus cheeseplus added this to the 0.20.2 milestone Jan 5, 2017
@cheeseplus cheeseplus added the Bug label Jan 6, 2017
@cheeseplus cheeseplus self-assigned this Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants