0

I use vagrant. I want to modify the provisioning behaviour when I restore a vagrant snapshot. According to this web page, I should be able to use the option

--[no-]provision

When I try to run this option though, my vagrant complains that I provided an invalid argument. When I check the version, it says I am using the latest version.

$ vagrant snapshot list
my_snapshot1
my_snapshot2

$ vagrant snapshot restore --no-provision my_snapshot2
An invalid option was specified. The help for this command
is available below.

Usage: vagrant snapshot restore [options] [vm-name] <name>

Restore a snapshot taken previously with snapshot save.
    -h, --help                       Print this help

$ vagrant --version
Vagrant 1.8.1

What am I doing wrong? When I run it without that option, it restores the snapshot just fine. Tried also changing the order of arguments.

gnomed
  • 5,483
  • 2
  • 26
  • 28

1 Answers1

1

There is a known issue which has been fixed to allow the --no-provision option when running vagrant restore

This is coming in the next release of vagrant, but you can build also from github as this has been merged into core.

Frederic Henri
  • 51,761
  • 10
  • 113
  • 139