summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-11-12 19:31:16 +0000
committerTed Trask <ttrask01@yahoo.com>2015-11-12 19:31:16 +0000
commitece61d70cd6b64197f6d46bd3960c86c5519f972 (patch)
tree08fb861d9923bf367e371ee3bd86720655ced861
parentfab86d805ae23e517db1eb4889682cdf7d5cb897 (diff)
downloadacf-provisioning-ece61d70cd6b64197f6d46bd3960c86c5519f972.tar.bz2
acf-provisioning-ece61d70cd6b64197f6d46bd3960c86c5519f972.tar.xz
Fix bulkcreatedevice when option value is a blank string
-rw-r--r--provisioning-model.lua2
1 files changed, 1 insertions, 1 deletions
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