remove mapstructure from blockstorage,cdn,compute,db pkgs
diff --git a/openstack/compute/v2/servers/requests.go b/openstack/compute/v2/servers/requests.go
index 7c964d2..06db312 100644
--- a/openstack/compute/v2/servers/requests.go
+++ b/openstack/compute/v2/servers/requests.go
@@ -195,9 +195,7 @@
server["name"] = opts.Name
server["imageRef"] = opts.ImageRef
- server["imageName"] = opts.ImageName
server["flavorRef"] = opts.FlavorRef
- server["flavorName"] = opts.FlavorName
if opts.UserData != nil {
encoded := base64.StdEncoding.EncodeToString(opts.UserData)
@@ -503,10 +501,13 @@
return server, err
}
- server["name"] = opts.Name
server["adminPass"] = opts.AdminPass
server["imageRef"] = opts.ImageID
+ if opts.Name != "" {
+ server["name"] = opts.Name
+ }
+
if opts.AccessIPv4 != "" {
server["accessIPv4"] = opts.AccessIPv4
}