mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 05:49:09 -07:00
Fix invalid string escape sequences.
This commit is contained in:
parent
f9cd50411f
commit
e45c763b64
48 changed files with 77 additions and 77 deletions
|
@ -144,9 +144,9 @@ class LinuxVirtual(Virtual):
|
|||
|
||||
if os.path.exists('/proc/self/status'):
|
||||
for line in get_file_lines('/proc/self/status'):
|
||||
if re.match('^VxID: \d+', line):
|
||||
if re.match(r'^VxID: \d+', line):
|
||||
virtual_facts['virtualization_type'] = 'linux_vserver'
|
||||
if re.match('^VxID: 0', line):
|
||||
if re.match(r'^VxID: 0', line):
|
||||
virtual_facts['virtualization_role'] = 'host'
|
||||
else:
|
||||
virtual_facts['virtualization_role'] = 'guest'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue