lib/libvirt/domain.rb in libvirt_ffi-0.7.0 vs lib/libvirt/domain.rb in libvirt_ffi-0.8.0

- old
+ new

@@ -59,20 +59,20 @@ # @return [Boolean] # @raise [Libvirt::Errors::LibError] def auto_start value = ::FFI::MemoryPointer.new(:int) result = FFI::Domain.virDomainGetAutostart(@dom_ptr, value) - raise Errors::LibError, "Couldn't get domain uuid" if result.negative? + raise Errors::LibError, "Couldn't get domain auto_start" if result.negative? value.read_int == 1 end # @param value [Boolean] # @raise [Libvirt::Errors::LibError] def set_auto_start(value) value = value ? 1 : 0 result = FFI::Domain.virDomainSetAutostart(@dom_ptr, value) - raise Errors::LibError, "Couldn't get domain uuid" if result.negative? + raise Errors::LibError, "Couldn't set domain auto_start" if result.negative? end # def vcpus # # https://github.com/libvirt/ruby-libvirt/blob/9f71ff5add1f57ffef7cf513b72638d92d9fd84f/ext/libvirt/domain.c#L787 # # dominfo = virDomainGetInfo