Skip to content

Commit

Permalink
Merge pull request #3995 from chunfuwen/fix_filesystem_username_match…
Browse files Browse the repository at this point in the history
…_issue

Fix check_idmap_xml_filesystem_device failure
  • Loading branch information
Yingshun authored Sep 9, 2024
2 parents 6f93959 + 50efc5c commit ec69b5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion virttest/utils_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ def _get_subid(id_filepath, name, info):
if result.exit_status:
raise TestError("Couldn't read %s" % id_filepath)

entry = [l for l in result.stdout_text.split("\n") if name in l]
entry = [
l
for l in result.stdout_text.split("\n")
if name in l and name == l.split(":")[0]
]
if not entry:
raise TestError("No entry for %s found in %s" % (name, id_filepath))

Expand Down

0 comments on commit ec69b5f

Please sign in to comment.