sfpagent 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sfpagent might be problematic. Click here for more details.

Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/sfpagent/bsig.rb +5 -3
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
data/lib/sfpagent/bsig.rb CHANGED
@@ -212,6 +212,7 @@ class Sfp::BSig
212
212
  agents_goal.each do |agent_name,agent_goal|
213
213
  Thread.new {
214
214
  stat = achieve_remote_agent_goal(agents, agent_name, agent_goal, id, pi, mode)
215
+ Sfp::Agent.logger.info "remote goal => #{agent_name}: #{agent_goal.inspect} - #{stat}"
215
216
  lock.synchronize { status << stat }
216
217
  }
217
218
  end
@@ -324,11 +325,12 @@ class Sfp::BSig
324
325
  data = {'id' => id,
325
326
  'goal' => JSON.generate(goal),
326
327
  'pi' => pi}
327
- Sfp::Agent.logger.info "[#{mode}] Request goal to: #{agent_name} [WAIT]"
328
+ Sfp::Agent.logger.info "[#{mode}] Request goal to #{agent_name} [WAIT]"
328
329
  code, _ = put_data(agent['sfpAddress'], agent['sfpPort'], SatisfierPath, data)
329
- Sfp::Agent.logger.info "[#{mode}] Request goal to: #{agent_name} - status: #{code}"
330
+ Sfp::Agent.logger.info "[#{mode}] Request goal to #{agent_name} - status: #{code}"
330
331
  (code == '200')
331
- rescue
332
+ rescue Exception => exp
333
+ Sfp::Agent.logger.info "[#{mode}] Request goal to #{agent_name} - error: #{exp}\n#{exp.bracktrace.join("\n")}"
332
334
  return true if check_not_created_agent(agent_name, goal)
333
335
  false
334
336
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfpagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sfp
16
- requirement: &15974100 !ruby/object:Gem::Requirement
16
+ requirement: &20307740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.3.12
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15974100
24
+ version_requirements: *20307740
25
25
  description: A Ruby implementation of SFP agent.
26
26
  email: herry13@gmail.com
27
27
  executables: