scout 5.6.0.alpha.2 → 5.6.0.alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/scout/server.rb +3 -2
- data/lib/scout/version.rb +1 -1
- metadata +1 -1
data/lib/scout/server.rb
CHANGED
@@ -36,7 +36,7 @@ module Scout
|
|
36
36
|
@server_name = server_name
|
37
37
|
@http_proxy = http_proxy
|
38
38
|
@https_proxy = https_proxy
|
39
|
-
@roles = roles
|
39
|
+
@roles = roles || ''
|
40
40
|
@plugin_plan = []
|
41
41
|
@plugins_with_signature_errors = []
|
42
42
|
@directives = {} # take_snapshots, interval, sleep_interval
|
@@ -63,6 +63,7 @@ module Scout
|
|
63
63
|
url=URI.join( @server.sub("https://","http://"), "/clients/#{ping_key}/ping.scout")
|
64
64
|
|
65
65
|
headers = {"x-scout-tty" => ($stdin.tty? ? 'true' : 'false')}
|
66
|
+
headers["x-scout-roles"] = @roles
|
66
67
|
if @history["plan_last_modified"] and @history["old_plugins"]
|
67
68
|
headers["If-Modified-Since"] = @history["plan_last_modified"]
|
68
69
|
end
|
@@ -91,7 +92,7 @@ module Scout
|
|
91
92
|
url = urlify(:plan)
|
92
93
|
info "Fetching plan from server at #{url}..."
|
93
94
|
headers = {"x-scout-tty" => ($stdin.tty? ? 'true' : 'false')}
|
94
|
-
headers["x-scout-roles"] = @roles
|
95
|
+
headers["x-scout-roles"] = @roles
|
95
96
|
|
96
97
|
get(url, "Could not retrieve plan from server.", headers) do |res|
|
97
98
|
begin
|
data/lib/scout/version.rb
CHANGED