Skip to content

Commit

Permalink
ansible/roles.py: fix pull call to handle up-to-date repo
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 24, 2024
1 parent 2f89b7a commit d895586
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ansible/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ def valid_version(self):
def pull(self):
self._git('remote', 'update')
status = self._git('status', '--untracked-files=no')
if 'branch is behind' not in status:

if 'branch is up to date' in status:
return True
elif 'branch is behind' not in status:
return None

rval = self._git('pull')
Expand Down

0 comments on commit d895586

Please sign in to comment.