fog / fog-xenserver

Module for the 'fog' gem to support XENSERVER
MIT License
16 stars 22 forks source link

VM revert snapshot - undefined method revert_to_vm #46

Closed fmbiete closed 9 years ago

fmbiete commented 9 years ago

Hi,

I'm trying to revert server to one snapshot, but I'm getting an error. Maybe the alias_method is not working?

vm.revert_to(snapshot.uuid)

NoMethodError: undefined method `revert_to_vm' for #<Fog::Compute::XenServer::Real:0x007f3808b0e360>
        from /usr/local/bundle/gems/fog-xenserver-0.1.1/lib/fog/compute/xen_server/models/server.rb:168:in `revert_to'
plribeiro3000 commented 9 years ago

@fmbiete Try the latest version 0.1.2. It should have this issue fixed.

fmbiete commented 9 years ago

Hi,

The problem is fixed.

Thanks!!!

plribeiro3000 commented 9 years ago

Note you can use bot revert and revert_to methods. =)