Skip to content

Commit

Permalink
fix role info utility func for yml inventory (#215)
Browse files Browse the repository at this point in the history
Signed-off-by: hirokuni-kitahara <[email protected]>
  • Loading branch information
hirokuni-kitahara authored Dec 12, 2023
1 parent dcd5fc7 commit 2f4e6cb
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 2f4e6cb

Please sign in to comment.