Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #208 from ripienaar/204_path
Browse files Browse the repository at this point in the history
(#204) Also record the active path
  • Loading branch information
ripienaar committed Mar 8, 2017
2 parents d057b09 + 0d669c9 commit 709d7a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mcollective/agent/choria_util.ddl
Expand Up @@ -17,6 +17,10 @@ action "info", :description => "Choria related information from the running Daem
:description => "Connector plugin",
:display_as => "Connector"

output :path,
:description => "Active OS PATH",
:display_as => "Path"

output :client_version,
:description => "Client gem version",
:display_as => "Client Version"
Expand Down
1 change: 1 addition & 0 deletions lib/mcollective/agent/choria_util.rb
Expand Up @@ -17,6 +17,7 @@ class Choria_util < RPC::Agent
reply[:srv_domain] = choria.srv_domain
reply[:using_srv] = choria.should_use_srv?
reply[:middleware_servers] = choria.middleware_servers.map {|s| s.join(":")}
reply[:path] = ENV.fetch("PATH", "")

if connector.connected?
reply[:connected_server] = "%s:%s" % [connector.connected_server.host, connector.connected_server.port]
Expand Down

0 comments on commit 709d7a9

Please sign in to comment.