Skip to content

Commit

Permalink
Assert schema is 'ietf-alarms'
Browse files Browse the repository at this point in the history
  • Loading branch information
dpino committed Sep 20, 2017
1 parent 7035b2b commit 97f918e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/config/leader.lua
Expand Up @@ -634,8 +634,9 @@ end

function Leader:rpc_get_alarms_state (args)
local function getter()
assert(args.schema == "ietf-alarms")
local printer = path_printer_for_schema_by_name(
'ietf-alarms', args.path, false, args.format, args.print_default)
args.schema, args.path, false, args.format, args.print_default)
local state = {
alarms = alarms.get_state()
}
Expand Down

0 comments on commit 97f918e

Please sign in to comment.