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

databases: prevent potential panic on db create #1378

Conversation

bentranter
Copy link
Member

In the command to create a database, there's an error that we're currently ignoring. If that err is not nil and the next line runs that tries to access a field on a nil database, doctl will panic. This PR checks that error, which will prevent the panic.

In the command to create a database, there's an error that we're
currently ignoring. If that err is not nil and the next line runs that
tries to access a field on a nil database, doctl will panic. This PR
checks that error, which will prevent the panic.
@bentranter bentranter requested a review from a team May 17, 2023 16:34
Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@danaelhe danaelhe left a comment

Choose a reason for hiding this comment

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

nice

@bentranter bentranter merged commit ebc57cc into digitalocean:main May 17, 2023
6 checks passed
@bentranter bentranter deleted the databases/prevent-rare-panic-on-db-create branch May 17, 2023 16:59
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.

None yet

4 participants