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

Remove on suspend option #4

Merged
merged 3 commits into from
May 29, 2013
Merged

Remove on suspend option #4

merged 3 commits into from
May 29, 2013

Conversation

Svelix
Copy link
Contributor

@Svelix Svelix commented May 21, 2013

Hi,

first of all thanks for this plugin, I was looking for a solution to manage the host entries, and so far it seems to work very good.

I found one issue so far: When you call vagrant suspend the host entries are removed, but when calling vagrant resume they are not added again.

So I made some little changes to fix this, please consider pulling them:

  • host entries are not removed by default when calling vagrant suspend
  • added an option to remove them on suspend when you want it
  • always check if host entries need to be added when calling vagrant resume

Sven Felix Oberquelle and others added 3 commits May 21, 2013 15:58
Previously the hosts entries where removed when the VMs are suspended, but
not added again when you called resume.
With this patch the hosts entries are only removed when you set the
remove_on_suspend option to true, and they are always added again when
you call resume.
Fixed code blocks
@faceleg
Copy link

faceleg commented May 23, 2013

This looks awesome! 👍

agiledivider added a commit that referenced this pull request May 29, 2013
@agiledivider agiledivider merged commit 104a5a6 into agiledivider:master May 29, 2013
@Svelix Svelix deleted the remove_on_suspend_option branch May 30, 2013 06:43
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