Merge pull request #335 from rgbkrk/unlist-address
Remove address from UpdateOpts
diff --git a/rackspace/lb/v1/nodes/fixtures.go b/rackspace/lb/v1/nodes/fixtures.go
index 0aea541..7c85945 100644
--- a/rackspace/lb/v1/nodes/fixtures.go
+++ b/rackspace/lb/v1/nodes/fixtures.go
@@ -163,7 +163,6 @@
th.TestJSONRequest(t, r, `
{
"node": {
- "address": "1.2.3.4",
"condition": "DRAINING",
"weight": 10,
"type": "SECONDARY"
diff --git a/rackspace/lb/v1/nodes/requests.go b/rackspace/lb/v1/nodes/requests.go
index bfd0aed..77894aa 100644
--- a/rackspace/lb/v1/nodes/requests.go
+++ b/rackspace/lb/v1/nodes/requests.go
@@ -176,10 +176,6 @@
// UpdateOpts represent the options for updating an existing node.
type UpdateOpts struct {
- // Optional - the IP address or CIDR for this back-end node. It can either be
- // a private IP (ServiceNet) or a public IP.
- Address string
-
// Optional - the condition of the node. See the consts in Results.go.
Condition Condition
@@ -194,9 +190,6 @@
func (opts UpdateOpts) ToNodeUpdateMap() (map[string]interface{}, error) {
node := make(map[string]interface{})
- if opts.Address != "" {
- node["address"] = opts.Address
- }
if opts.Condition != "" {
node["condition"] = opts.Condition
}
diff --git a/rackspace/lb/v1/nodes/requests_test.go b/rackspace/lb/v1/nodes/requests_test.go
index f888a14..003d347 100644
--- a/rackspace/lb/v1/nodes/requests_test.go
+++ b/rackspace/lb/v1/nodes/requests_test.go
@@ -149,7 +149,6 @@
mockUpdateResponse(t, lbID, nodeID)
opts := UpdateOpts{
- Address: "1.2.3.4",
Weight: gophercloud.IntToPointer(10),
Condition: DRAINING,
Type: SECONDARY,