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 error behavior when security_group_filter is set but no security group found for those tags #386

Merged
merged 1 commit into from
Feb 9, 2018
Merged

Fix error behavior when security_group_filter is set but no security group found for those tags #386

merged 1 commit into from
Feb 9, 2018

Conversation

dpattmann
Copy link
Contributor

Currently, when security_group_filter does not match a security group, we get an exception:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #create action: [undefined method `group_id' for nil:NilClass] on default-centos-7
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

This PR catches this case to provide a meaningful error message.

…up found for those tags

Co-authored-by: Florian Sellmayr <florian.sellmayr@gmail.com>
@cheeseplus cheeseplus merged commit 8f394e1 into test-kitchen:master Feb 9, 2018
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