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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Scout
2
- VERSION = "5.6.0.alpha.2"
2
+ VERSION = "5.6.0.alpha.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0.alpha.2
4
+ version: 5.6.0.alpha.3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: