Return all applicable results from Lookup

and stop erroring on Lookup not found; just return a blank result
This commit is contained in:
Bryan Boreham committed 2016-03-02 17:01:12 -08:00
1 parent 03563e847e
commit b6eec08247
5 files changed
+31 -22

No files matched your search

+1 -1
View File
@@ -1343,7 +1343,7 @@ ipam_cidrs() {
echo "IP address allocation must be enabled to use 'net:'" >&2
return 1
fi
elif ! is_cidr "$CIDR" ; then
elif [ -n "$CIDR" ] && ! is_cidr "$CIDR" ; then
echo "$CIDR" >&2
return 1
else