Skip to content

Commit

Permalink
change update real server param name
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-ruth committed Dec 6, 2018
1 parent e856032 commit 98a957f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loadbalance_real_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ func (c *Client) LoadbalanceUpdateRealServer(rs LoadbalanceRealServer) error {
}

// LoadbalanceDeleteRealServer deletes an existing real server
func (c *Client) LoadbalanceDeleteRealServer(rs string) error {
func (c *Client) LoadbalanceDeleteRealServer(name string) error {

if len(rs) == 0 {
if len(name) == 0 {
return errors.New("real server name cannot be empty")
}

req, err := http.NewRequest("DELETE", fmt.Sprintf("%s/api/load_balance_real_server/%s", c.Address, rs), nil)
req, err := http.NewRequest("DELETE", fmt.Sprintf("%s/api/load_balance_real_server/%s", c.Address, name), nil)
if err != nil {
return err
}
Expand Down

0 comments on commit 98a957f

Please sign in to comment.