check for valid Op in Update
diff --git a/openstack/cdn/v1/services/requests.go b/openstack/cdn/v1/services/requests.go
index f88df19..646f63e 100644
--- a/openstack/cdn/v1/services/requests.go
+++ b/openstack/cdn/v1/services/requests.go
@@ -1,6 +1,7 @@
package services
import (
+ "fmt"
"strings"
"github.com/racker/perigee"
@@ -249,6 +250,9 @@
s := make([]map[string]interface{}, len(opts))
for i, opt := range opts {
+ if opt.Op != Add && opt.Op != Remove && opt.Op != Replace {
+ return nil, fmt.Errorf("Invalid Op: %v", opt.Op)
+ }
if opt.Op == "" {
return nil, no("Op")
}