Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Skip agents with empty server url. #1

Closed

Conversation

jgraichen
Copy link

Skip agents without a server URL to avoid throwing an undefined method '+' for nil:NilClass error when building the download URL. Also avoids creating users, groups, ... for invalid agents.

@@ -27,6 +27,7 @@

if agent['server_url'].nil?
Chef::Log.fatal "You need to setup the server url for agent #{name}"
next
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't it is the right way to ignore incorrect configured agents. Instead of next an exception should be raised with the same information as the log entry.

@mswart mswart closed this in 92ecbe5 Feb 20, 2013
danieljimenez referenced this pull request in foreflight/chef-teamcity Nov 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants