Skip to content
Snippets Groups Projects
Unverified Commit 887ddea0 authored by Andreas Ziegler's avatar Andreas Ziegler Committed by GitHub
Browse files

Merge pull request #3050 from blocktrron/empty-role

gluon-core: dont fail on unset interface role
parents f8789283 c4d37036
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,10 @@ end
uci:foreach('gluon', 'interface', function(interface)
local function has_role(role)
if interface.role == nil then
return false
end
return util.contains(interface.role, role)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment