Merge "v2 image update fix"
This commit is contained in:
commit
3137edcf89
@ -294,7 +294,12 @@ class Image(resource.Resource):
|
||||
'Accept': ''
|
||||
}
|
||||
original = self.to_dict()
|
||||
patch_string = jsonpatch.make_patch(original, attrs).to_string()
|
||||
|
||||
# Update values from **attrs so they can be passed to jsonpatch
|
||||
new = self.to_dict()
|
||||
new.update(**attrs)
|
||||
|
||||
patch_string = jsonpatch.make_patch(original, new).to_string()
|
||||
resp = session.patch(url,
|
||||
data=patch_string,
|
||||
headers=headers)
|
||||
|
Loading…
Reference in New Issue
Block a user