Skip to content

Commit

Permalink
B #3190 Simplifed is_root regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Apr 5, 2019
1 parent c933c8a commit e135b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def unmap(one_vm, disk, directory)

real_path = directory

is_rootfs = real_path.match?(%r{containers(/)one-(\d+)(/)rootfs})
is_rootfs = real_path =~ %r{.*/rootfs}
is_shared_ds = File.symlink?(one_vm.sysds_path)

real_path = File.realpath(directory) if !is_rootfs && is_shared_ds
Expand Down

0 comments on commit e135b6c

Please sign in to comment.