Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue creating SMuRF controller client list for single controllers #155

Merged
merged 2 commits into from
May 24, 2024

Conversation

BrianJKoopman
Copy link
Member

This adds a check for if we've just got a single controller instance back from _find_active_instances(), which was resulting in the error described in #153. _find_active_instances() returns a single string when it only finds one of a given Agent type online, otherwise it returns a list. We were handling the instance of two or more SMuRFs and zero SMuRFs, but not one. This fixes that.

I added a whole new mock client setup to test this. There might be some way to simplify this, but I'm not too concerned at the moment. If we need to add a third mock client setup we should figure that out.

Resolves #153.

@BrianJKoopman BrianJKoopman merged commit 617d4ce into main May 24, 2024
4 checks passed
@BrianJKoopman BrianJKoopman deleted the koopman/client-list-bugfix branch May 24, 2024 18:00
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.

Error unpackaging pysmurf-controllers when only one agent is running
1 participant