Commit 429bf0f
committed
Use *string for backingObjectId
BackingObjectId is an optional value which means there is a
distinction between unset and empty value.
The serialization process treats empty value as unset, which
means it is changing the content between serialize/deserialize.
Hostd differientiates between these 2 values and if it notices
it changes will reject modifications when the VM is powered on,
even though our intent was not to modify the content.
This change uses *string value to distinguish all the states.
Clients that care about this value will have to do similar changes
as I made to the tests.
BREAKING: Change backingObjectId from string to *string
Signed-off-by: Nathan Prziborowski <prziborowski@gmail.com>1 parent 2a3fd10 commit 429bf0f
3 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86215 | 86215 | | |
86216 | 86216 | | |
86217 | 86217 | | |
86218 | | - | |
| 86218 | + | |
86219 | 86219 | | |
86220 | 86220 | | |
86221 | 86221 | | |
| |||
0 commit comments