Make hbase-master-info.nse be silent if it doesn't learn anything.

This commit is contained in:
david 2012-01-14 01:03:19 +00:00
parent 8ac8aed20d
commit e11e1e9f22

View file

@ -147,8 +147,10 @@ action = function( host, port )
end
nmap.set_port_version(host, port, "hardmatched")
local tasktrackers = get_tasktrackers (host, port)
table.insert(result, "Tasktrackers: ")
table.insert(result, tasktrackers)
if next(tasktrackers) then
table.insert(result, "Tasktrackers: ")
table.insert(result, tasktrackers)
end
if stdnse.get_script_args('hadoop-jobtracker-info.userinfo') then
local userhistory = get_userhistory (host, port)
table.insert(result, "Userhistory: ")