-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 for VPC FlowLog issue #7648 #7654
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
might have jumped the gun, needs to pass tests first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok - yah i verified the diff. Thanks.
Co-authored-by: Sonny <sonny@stacklet.io>
fl['LogDestination'] = '' | ||
dest_match = (destination is None) or op( | ||
fl['LogDestination'], destination) | ||
if fl.get('LogDestinationType') == "s3": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this change will prevent the filter from being able to test cloudwatch destinations. I'm wondering if the original code was close, but needed fl['LogDestination']
--> fl.get('LogDestination')
to avoid the KeyError
you were seeing.
fixes: #7648