Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 53050ee

Browse files
Alberto MurilloSamuel Ortiz
authored andcommitted
imageservice: Fix location for image properties
Custom image properties goes in the body itself, not inside a 'properties' field. Signed-off-by: Alberto Murillo <[email protected]>
1 parent 4b779e5 commit 53050ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openstack/imageservice/v2/images/requests.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ func (opts CreateOpts) ToImageCreateMap() (map[string]interface{}, error) {
185185
body["protected"] = opts.Protected
186186

187187
if opts.Properties != nil {
188-
body["properties"] = opts.Properties
188+
for k, v := range opts.Properties {
189+
body[k] = v
190+
}
189191
}
190192
return body, nil
191193
}

0 commit comments

Comments
 (0)