From 715251784876a70b4c029914d15d48223808a2f1 Mon Sep 17 00:00:00 2001 From: Chris MacNaughton Date: Thu, 16 Mar 2017 08:24:19 +0100 Subject: [PATCH] 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 --- hooks/lxd_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/lxd_utils.py b/hooks/lxd_utils.py index 16df15f..467aa5a 100644 --- a/hooks/lxd_utils.py +++ b/hooks/lxd_utils.py @@ -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