Skip to content

Commit

Permalink
fix role info utility func for yml inventory
Browse files Browse the repository at this point in the history
Signed-off-by: hirokuni-kitahara <[email protected]>
  • Loading branch information
hirokuni-kitahara committed Dec 12, 2023
1 parent dcd5fc7 commit a28e9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_risk_insight/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def get_role_info_from_path(fpath: str):

_path = relative_path.rsplit(_target, 1)[0]
role_name = _path.split("/")[-1]
role_path = os.path.join(parent_dir, p[1:], role_name)
role_path = os.path.join(parent_dir, _path)
found = True
break
if found:
Expand Down

0 comments on commit a28e9f4

Please sign in to comment.