Skip to content

Commit

Permalink
Merge pull request avocado-framework#3390 from nanli1/fix_get_no_exte…
Browse files Browse the repository at this point in the history
…nd_l2_value

utils_misc: fix get no extend_l2 value in get_image_info function
  • Loading branch information
Yingshun authored Apr 18, 2022
2 parents c545a52 + 8919c84 commit 0b4b767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virttest/utils_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2885,6 +2885,9 @@ def get_image_info(image_file):
elif line.find("lazy refcounts") != -1:
lazy_refcounts = line.split(':')[-1].strip()
image_info_dict['lcounts'] = lazy_refcounts
elif line.find("extended l2") != -1:
extended_l2 = line.split(':')[-1].strip()
image_info_dict['extended l2'] = extended_l2
return image_info_dict
except (KeyError, IndexError, process.CmdError) as detail:
raise exceptions.TestError("Fail to get information of %s:\n%s" %
Expand Down

0 comments on commit 0b4b767

Please sign in to comment.