Adding fixes to LBs
diff --git a/rackspace/lb/v1/lbs/requests.go b/rackspace/lb/v1/lbs/requests.go
index 63b8513..38f109f 100644
--- a/rackspace/lb/v1/lbs/requests.go
+++ b/rackspace/lb/v1/lbs/requests.go
@@ -240,7 +240,7 @@
MoreHeaders: c.AuthenticatedHeaders(),
ReqBody: &reqBody,
Results: &res.Body,
- OkCodes: []int{200},
+ OkCodes: []int{202},
})
return res
@@ -379,7 +379,7 @@
_, res.Err = perigee.Request("PUT", resourceURL(c, id), perigee.Options{
MoreHeaders: c.AuthenticatedHeaders(),
ReqBody: &reqBody,
- OkCodes: []int{200},
+ OkCodes: []int{202},
})
return res
diff --git a/rackspace/lb/v1/lbs/requests_test.go b/rackspace/lb/v1/lbs/requests_test.go
index fa1e658..47d96d7 100644
--- a/rackspace/lb/v1/lbs/requests_test.go
+++ b/rackspace/lb/v1/lbs/requests_test.go
@@ -105,14 +105,14 @@
vips.VIP{
ID: 39,
Address: "206.10.10.210",
- Type: "PUBLIC",
- Version: "IPV4",
+ Type: vips.PUBLIC,
+ Version: vips.IPV4,
},
vips.VIP{
ID: 900001,
Address: "2001:4801:79f1:0002:711b:be4c:0000:0021",
- Type: "PUBLIC",
- Version: "IPV6",
+ Type: vips.PUBLIC,
+ Version: vips.IPV6,
},
},
Created: Datetime{Time: "2011-04-13T14:18:07Z"},