Skip to content

Conversation

@DeveloperViraj
Copy link

Closes #1758

This PR makes the --user flag optional in doctl databases pool create.

Previously, omitting the flag caused:

Error: (pool.create.user) command is missing required arguments

According to the API and docs, user is optional — if not supplied, the server uses the default inbound user.
This change skips setting req.User when no flag value is provided.

  • Keeps behavior unchanged when --user is supplied.
  • Prevents unnecessary error when omitted.
  • Passes local build and formatting checks.

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.

doctl databases pool create (fails when --user arg not provided)

1 participant