Skip to content

Commit 3ce8c20

Browse files
authored
image: add more reserved image attributes (#142)
1 parent 7424e75 commit 3ce8c20

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

pkg/image.go

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,29 @@ func waitForImage(ctx context.Context, client, swiftClient *gophercloud.ServiceC
206206
}
207207

208208
var skipImageAttributes = []string{
209+
// https://github.com/openstack/glance/blob/ba82d3591d8a69f6eef62ad03f764d3385b85dba/glance/api/v2/images.py#L1254-L1259
210+
// disallowed properties
209211
"direct_url",
210-
"boot_roles",
212+
"self",
213+
"file",
214+
"schema",
215+
"stores",
216+
// readonly properties
217+
"created_at",
218+
"updated_at",
219+
"status",
220+
"checksum",
221+
"size",
222+
"virtual_size",
223+
"direct_url",
224+
"self",
225+
"file",
226+
"schema",
227+
"id",
211228
"os_hash_algo",
212229
"os_hash_value",
230+
// other
231+
"boot_roles",
213232
}
214233

215234
func expandImageProperties(v map[string]interface{}) map[string]string {

0 commit comments

Comments
 (0)