Skip to content

Conversation

@vipulgupta2048
Copy link
Member

@vipulgupta2048 vipulgupta2048 commented Nov 4, 2022

Haven't tested it, since I needed another fleet to test this in but I am confident it should work fine.
To search in more than one fleet for potential workers, create an array of fleet slugs in the worker object. That's the solution. Again though, I need to test this before getting it through and probably it would be better if we could write tests for it as well.

Context: https://balena.zulipchat.com/#narrow/stream/345889-loop.2Fbalena-os/topic/London.20test.20rig.20EOL/near/308002887
Signed-off-by: Vipul Gupta (@vipulgupta2048) [email protected]

@vipulgupta2048
Copy link
Member Author

Good to be checked out now, I tried to be smart about by using map function for the array but for some reason it's just not working out. So, went with this solution which helps us eliminate any need of a IF statement to get the job done. Give it a go @rcooke-warwick

@vipulgupta2048
Copy link
Member Author

Closin in favor #1059

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