vagrant-smartos / vagrant-smartos-zones

Manage SmartOS local zones in Vagrant
MIT License
54 stars 9 forks source link

Fix issue with undefined local variable or method `ui' #36

Closed drscream closed 8 years ago

drscream commented 8 years ago

The vagrant global-zone command failed with the newest vagrant version:

/Users/tm/.vagrant.d/gems/gems/vagrant-smartos-zones-0.2.2/lib/vagrant/smartos/zones/commands/multi_command.rb:32:in `process_subcommand': undefined local variable or method `ui' for #<Vagrant::Smartos::Zones::Command::GlobalZone:0x000001021f7c98> (NameError)
    from /Users/tm/.vagrant.d/gems/gems/vagrant-smartos-zones-0.2.2/lib/vagrant/smartos/zones/commands/multi_command.rb:17:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/cli.rb:42:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/environment.rb:302:in `cli'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.8.4/bin/vagrant:174:in `<main>'
sax commented 8 years ago

Thank you for this! Happy to know that someone else is using this project.

I've reproduced the problem and verified that this fixes it. I don't have time right now to check if other things break with the newer Vagrant, but if you run into other issues and don't have time to make pull requests, please feel free to file issues and I'll try to stay on top of them.