Skip to content

task: pass through exclusive tenant tag#241

Open
aaronkvanmeerten wants to merge 4 commits intomainfrom
tenant-releases
Open

task: pass through exclusive tenant tag#241
aaronkvanmeerten wants to merge 4 commits intomainfrom
tenant-releases

Conversation

@aaronkvanmeerten
Copy link
Copy Markdown
Member

No description provided.

{% endfor %}
{% for item in haproxy_facts.backends|sort(attribute='local',reverse=True) %}
{% if item['release_number'] != release %}
{% if item['release_number'] != release and item['exclusive_tenant'] == "" %}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the new logic for when the item['exclusive_tenant'] != "" not item['exclusive_tenant'] == "" ?
I don't completely understand it, that's why I'm not sure

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have replaced one loop for two. Previously, we'd loop on all shards in releases that don't match the current one. Now we loop on all shards that don't match the current release and don't have an exclusive tenancy. Then we go back and loop again and include any that have an exclusive tenancy but aren't part of the current release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants