Filtering tags
steeevieee opened this issue · comments
I'm new to this but loving what you've done !
I'm struggling with filtering tags at the moment. I want to create profile(s) so that my dev team can access non-production hosts so the widcards are Name=QA and Name=DEV.
When filtering in the composite terminal list, either one of those brings up the correct hosts; but I can't use multiple to bring up all the relevant hosts no matter what I try. If I try comma separating the filters (eg Name=QA,Name=PT) then it only shows the hosts that match the last term
Next up I tried creating individual profiles and applying them to an account. The account can now see only the hosts for the last profile I add, instead of all the hosts the profiles match.
Is there a way to stack up filters ? Maybe a way of adding an OR statement to matching ?
Looks like it's doing an AND even when it's in separate profiles. I'll dig into it this week. Thanks!
On Jul 12, 2015, at 9:28 AM, steeevieee notifications@github.com wrote:
I'm new to this but loving what you've done !
I'm struggling with filtering tags at the moment. I want to create profile(s) so that my dev team can access non-production hosts so the widcards are Name=QA and Name=DEV.
When filtering in the composite terminal list, either one of those brings up the correct hosts; but I can't use multiple to bring up all the relevant hosts no matter what I try. If I try comma separating the filters (eg Name=QA,Name=PT) then it only shows the hosts that match the last term
Next up I tried creating individual profiles and applying them to an account. The account can now see only the hosts for the last profile I add, instead of all the hosts the profiles match.
Is there a way to stack up filters ? Maybe a way of adding an OR statement to matching ?
—
Reply to this email directly or view it on GitHub.
Hi Sean,
I can help u a bit with this issue. I have fixed it in my branch. The issue is if the tag key is same in different filters like Name=QA and Name=DEV, it gets replaced with the last tag-pair put in the Hash Map.
I used Guava MultiMap to solve this issue. This map basically is Map<String,Collection>
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Multimap.html
- Ambrish Ambekar
From: steeevieee <notifications@github.commailto:notifications@github.com>
Reply-To: skavanagh/EC2Box <reply@reply.github.commailto:reply@reply.github.com>
Date: Sunday, July 12, 2015 at 9:28 AM
To: skavanagh/EC2Box <EC2Box@noreply.github.commailto:EC2Box@noreply.github.com>
Subject: [EC2Box] Filtering tags (#20)
I'm new to this but loving what you've done !
I'm struggling with filtering tags at the moment. I want to create profile(s) so that my dev team can access non-production hosts so the widcards are Name=QA and Name=DEV.
When filtering in the composite terminal list, either one of those brings up the correct hosts; but I can't use multiple to bring up all the relevant hosts no matter what I try. If I try comma separating the filters (eg Name=QA,Name=PT) then it only shows the hosts that match the last term
Next up I tried creating individual profiles and applying them to an account. The account can now see only the hosts for the last profile I add, instead of all the hosts the profiles match.
Is there a way to stack up filters ? Maybe a way of adding an OR statement to matching ?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/20.
That is exactly what it is! Thanks @aambekar