lib/immunio/plugins/environment_reporter.rb in immunio-1.1.1 vs lib/immunio/plugins/environment_reporter.rb in immunio-1.1.2

- old
+ new

@@ -54,10 +54,14 @@ def hostname_ip # SocketError is raised if we can't fetch the hostname with `Socket.gethostname`. Addrinfo.getaddrinfo(hostname, nil).first.ip_address rescue SocketError end + def plugins + Immunio::Plugin.registered + end + def report @reported = true info = { runtime: { @@ -74,10 +78,10 @@ host: { hostname: hostname, hostname_ip: hostname_ip, ips: ips }, - plugins: Immunio.agent.plugins + plugins: plugins } Immunio.agent.environment = info end end