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

[BUG] - Load balancer rule create command doesn't work #354

Open
optik-aper opened this issue Sep 28, 2023 · 0 comments
Open

[BUG] - Load balancer rule create command doesn't work #354

optik-aper opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@optik-aper
Copy link
Member

Describe the bug
When using the vultr-cli load-balancer rule create ... command, it returns "bad request":

vultr-cli load-balancer rule create eadd59b0-ffe2-45a9-976d-c9faa0a1491f --backend-port=8800 --frontend-port=1230                                                                                            
error listing load balancer rules : {"error":"Bad request.","status":400}
exit status 1

To Reproduce
Steps to reproduce the behavior:

  1. Create a load balancer
  2. Try to create a rule with the rule create command
  3. See error

Expected behavior
Looking at the code:

		options := &govultr.ForwardingRule{}
		rule, _, err := client.LoadBalancer.CreateForwardingRule(context.Background(), id, options)
		if err != nil {
			fmt.Printf("error listing load balancer rules : %v\n", err)
			os.Exit(1)
		}

It doesn't appear to read any of the flag and is only passing an empty struct of load balancer options. The result is a malformed request.

@optik-aper optik-aper added the bug Something isn't working label Sep 28, 2023
@optik-aper optik-aper self-assigned this Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant