Skip to content

Commit

Permalink
handle no sysinfo from ssh_login
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Mar 31, 2017
1 parent df2a9a4 commit 34a152d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/post/multi/gather/tomcat_gather.rb
Expand Up @@ -180,10 +180,14 @@ def gathernix
end

def run
if sysinfo['OS'].include? "Windows"
gatherwin
if sysinfo
if sysinfo['OS'].include? "Windows"
gatherwin
else
gathernix
end
else
gathernix
print_error('Incompatible session type, sysinfo is not available.')
end

if $username.size == 0
Expand Down

0 comments on commit 34a152d

Please sign in to comment.