Made re.search string shorter

reviewable/pr18780/r1
Maciej Delmanowski 11 years ago
parent fa879a63a1
commit 669b345937

@ -1901,7 +1901,7 @@ class LinuxVirtual(Virtual):
if os.path.exists('/proc/1/cgroup'):
for line in open('/proc/1/cgroup').readlines():
if re.search('/lxc/.*$', line):
if re.search('/lxc/', line):
self.facts['virtualization_type'] = 'lxc'
self.facts['virtualization_role'] = 'guest'
return

Loading…
Cancel
Save