Pass readonly flag as a string, not a boolean.
The LXD API requires that data be passed as strings; pass the
readonly flag for config-drive support as a string to ensure
it can be parsed by LXD avoiding the following error:
json: cannot unmarshal bool into Go value of type string
Change-Id: I0c5dbd9cb8b8ea4f43398849f8b4c33305231d54
Closes-Bug: 1691428
(cherry picked from commit 95e1db84bc
)
This commit is contained in:
parent
8105b3ca18
commit
39c807b9b3
|
@ -327,7 +327,7 @@ class LXDDriver(driver.ComputeDriver):
|
|||
'path': '/config-drive',
|
||||
'source': configdrive_path,
|
||||
'type': 'disk',
|
||||
'readonly': True,
|
||||
'readonly': 'True',
|
||||
}
|
||||
}
|
||||
profile.devices.update(config_drive)
|
||||
|
|
Loading…
Reference in New Issue