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
This commit is contained in:
parent
ff1c8cd12c
commit
95e1db84bc
@ -467,7 +467,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
Block a user