Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

fix: Config Status Recorder #406

Merged
merged 4 commits into from
Jan 13, 2022
Merged

fix: Config Status Recorder #406

merged 4 commits into from
Jan 13, 2022

Conversation

bbernays
Copy link
Contributor

@bbernays bbernays commented Jan 13, 2022

Output from integration tests:
More information about running the tests here

$ go test -tags=integration ./...

Copy link
Member

@yevgenypats yevgenypats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment.

@@ -136,11 +137,12 @@ func fetchConfigConfigurationRecorders(ctx context.Context, meta schema.ClientMe
for _, configurationRecorder := range resp.ConfigurationRecorders {
var configurationRecorderStatus types.ConfigurationRecorderStatus
for _, s := range status.ConfigurationRecordersStatus {
if s.Name == configurationRecorder.Name {
if *s.Name == *configurationRecorder.Name {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a nil check

Copy link
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@roneli roneli removed the request for review from spangenberg January 13, 2022 18:58
@yevgenypats yevgenypats merged commit a251428 into cloudquery:main Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recording_status of config.configuration_recorders does not reflect actual Config recording status
3 participants