Skip to content

Commit

Permalink
ansible/roles.py: fix checking ancestry during update
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Jun 13, 2024
1 parent c17561e commit 6515c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def handle_role(role, check=False, update=False, install=False):
return role

# Check if current version is newer.
if role.is_ancestor():
return role
if not update and role.is_ancestor():
return role

# Check if current version matches required.
if role.valid_version():
Expand Down

0 comments on commit 6515c4b

Please sign in to comment.