1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #3127 Remove status handling from filesystem code

(cherry picked from commit 81457303b38b6a74aae4fa241ca6957de9cb79d3)
This commit is contained in:
Daniel Clavijo Coca 2019-03-27 05:54:43 -06:00 committed by Ruben S. Montero
parent 73ff19b7aa
commit 7b829d1950
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -139,7 +139,7 @@ class Mapper
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 @@ class Mapper
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)