mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Exclude annotated tags from checks
This commit is contained in:
parent
389c037285
commit
4b1df2f223
1 changed files with 8 additions and 3 deletions
|
@ -1308,7 +1308,7 @@ def latest(name,
|
|||
'if it does not already exist).',
|
||||
comments
|
||||
)
|
||||
if set(all_local_tags) != set([
|
||||
remote_tags = set([
|
||||
x.split('/')[-1] for x in __salt__['git.ls_remote'](
|
||||
cwd=target,
|
||||
remote=remote,
|
||||
|
@ -1318,9 +1318,14 @@ def latest(name,
|
|||
identity=identity,
|
||||
saltenv=__env__,
|
||||
ignore_retcode=True,
|
||||
).keys()
|
||||
]):
|
||||
).keys() if '^{}' not in x
|
||||
])
|
||||
if set(all_local_tags) != remote_tags:
|
||||
has_remote_rev = False
|
||||
ret['changes']['tags'] = {
|
||||
'old': all_local_tags,
|
||||
'new': list(remote_tags)
|
||||
}
|
||||
|
||||
if not has_remote_rev:
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue