Skip to content

Commit

Permalink
Merge pull request avocado-framework#3867 from Yingshun/fix_black
Browse files Browse the repository at this point in the history
Fixup an issue on black style check
  • Loading branch information
dzhengfy authored Mar 11, 2024
2 parents 55775bc + 256bbe6 commit 6907b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virttest/test_setup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,9 @@ def get_kernel_hugepages(self, pagesize, type="total"):
:param type: total pages or free pages
:return: page number
"""
if type == 'total':
if type == "total":
ptype = "nr_hugepages"
elif type == 'free':
elif type == "free":
ptype = "free_hugepages"
else:
raise ValueError("The 'type' argument only accepts 'total' and 'free'")
Expand Down

0 comments on commit 6907b87

Please sign in to comment.