diff --git a/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb b/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb index e9d036a6822..b11a32f0272 100644 --- a/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb +++ b/src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb @@ -139,7 +139,7 @@ def map(one_vm, disk, directory) fstype = get_fstype(device) - return unless reset_fs_uuid(fstype, device) + reset_fs_uuid(fstype, device) mount_resize_fs(device, directory, fstype, disk) end @@ -521,10 +521,9 @@ def reset_fs_uuid(fs_type, device) end rc, o, e = Command.execute(cmd, false) - return true if rc.zero? + return if rc.zero? OpenNebula.log_error "#{__method__}: error changing UUID: #{o}\n#{e}\n" - false end def get_fstype(device)