mirror of https://github.com/aredn/aredn.git
Merge pull request #412 from dman776/info_lib_index_fix
bugfix: fix index error in aredn_info lib
This commit is contained in:
commit
956639345f
|
@ -67,7 +67,7 @@ end
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
function model.getNodeName()
|
function model.getNodeName()
|
||||||
css=aredn_uci.getUciConfType("system", "system")
|
css=aredn_uci.getUciConfType("system", "system")
|
||||||
return css[0]['hostname']
|
return css[1]['hostname']
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
@ -75,7 +75,7 @@ end
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
function model.getNodeDescription()
|
function model.getNodeDescription()
|
||||||
css=aredn_uci.getUciConfType("system", "system")
|
css=aredn_uci.getUciConfType("system", "system")
|
||||||
return css[0]['description']
|
return css[1]['description']
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue