Adhere to the readme

Currently, providing a list of devices in config will lead
to an exception, despite the readme calling that out as an
option. Instead, we will now log a message and continue
with the behavious documented in the readme.

Change-Id: Ib5a1d1a0257227e829e433bc61f64ad4cba8052e
Closes-Bug: 1673277
This commit is contained in:
Chris MacNaughton 2017-03-16 08:24:19 +01:00
parent 60692dee66
commit 7152517848
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ def configure_lxd_block():
log('block devices not provided - skipping')
return
if len(lxd_block_devices) > 1:
raise NotImplementedError('Multiple block devices are not supported.')
log("More than one block device is not supported yet, only"
" using the first")
lxd_block_device = lxd_block_devices[0]
dev = None