use enumerator instead of slurping it
This commit is contained in:
parent
8dd0434386
commit
10ef1cae8e
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module LXC
|
||||||
private
|
private
|
||||||
|
|
||||||
def new_overlay?
|
def new_overlay?
|
||||||
@new_overlay ||= File.readlines('/proc/filesystems').include?("nodev\toverlay\n")
|
@new_overlay ||= File.open('/proc/filesystems').grep(/nodev\s+overlay/).any?
|
||||||
end
|
end
|
||||||
|
|
||||||
def random_mac
|
def random_mac
|
||||||
|
|
Loading…
Add table
Reference in a new issue