Skip to content
Browse files

emailArray was not cleared if a node wasnt configured

  • Loading branch information...
1 parent 653ddb4 commit 389e887486e5189979eaa3eda480e278bcae97c9 @christensen christensen committed Apr 1, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −3 models/src/emailcomputerlistener.rb
  2. +1 −1 nodeofflinenotification.pluginspec
View
7 models/src/emailcomputerlistener.rb
@@ -91,14 +91,15 @@ def notifyResponsible(computer, onlineCalled, masterStart)
#
private
def updateEmailAddresses computer
- emailNodeProp = getEmailNodeProperty(computer)
+ @emailAddresses = []
+
+ emailNodeProp = getEmailNodeProperty(computer)
+
if emailNodeProp.nil?
return
end
- @emailAddresses = []
-
# Create an array with the email addresses
localEmailArray = emailNodeProp.email.split(' ')
View
2 nodeofflinenotification.pluginspec
@@ -2,7 +2,7 @@
Jenkins::Plugin::Specification.new do |plugin|
plugin.name = "nodeofflinenotification"
plugin.display_name = "Node Offline Notification Plugin"
- plugin.version = '1.0.2'
+ plugin.version = '1.0.3'
plugin.description = 'Configure a node with email addresses to notify in case the node goes offline.'

0 comments on commit 389e887

Please sign in to comment.
Something went wrong with that request. Please try again.