mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing copy paste issue (#41121)
This commit is contained in:
parent
9387c75e29
commit
1ccff0de1a
1 changed files with 2 additions and 2 deletions
|
@ -277,11 +277,11 @@ class Default(FactsBase):
|
||||||
return "NA"
|
return "NA"
|
||||||
|
|
||||||
def parse_image(self, data):
|
def parse_image(self, data):
|
||||||
match = re.search(r'(.*) image1(.*)', data, re.M | re.I)
|
match = re.search(r'(.*) image(.*)', data, re.M | re.I)
|
||||||
if match:
|
if match:
|
||||||
return "Image1"
|
return "Image1"
|
||||||
else:
|
else:
|
||||||
return "Image1"
|
return "Image2"
|
||||||
|
|
||||||
def parse_serialnum(self, data):
|
def parse_serialnum(self, data):
|
||||||
for line in data.split('\n'):
|
for line in data.split('\n'):
|
||||||
|
|
Loading…
Reference in a new issue