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:
James Page 2017-05-17 10:43:40 +01:00
parent ff1c8cd12c
commit 95e1db84bc
1 changed files with 1 additions and 1 deletions

View File

@ -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)