From ece61d70cd6b64197f6d46bd3960c86c5519f972 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 12 Nov 2015 19:31:16 +0000 Subject: Fix bulkcreatedevice when option value is a blank string --- provisioning-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'provisioning-model.lua') diff --git a/provisioning-model.lua b/provisioning-model.lua index 23639ca..7c03598 100644 --- a/provisioning-model.lua +++ b/provisioning-model.lua @@ -2370,7 +2370,7 @@ mymodule.bulk_create_devices = function(self, devicelist) if values[j] == o.value then found = o.value break - elseif string.find(o.label, format.escapemagiccharacters(values[j])) then + elseif values[j] ~= "" and string.find(o.label, format.escapemagiccharacters(values[j])) then if found then error("Ambiguous "..h.." value in line "..i) end -- cgit v1.2.3