Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

only 1 server needed wehen calling server_with_role.

  • Loading branch information...
commit 8db17fd5ba2c0e0620be33f60d4c05360a13e37c 1 parent d14629a
@specialunderwear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/puppet/parser/functions/server_with_role.rb
View
2  lib/puppet/parser/functions/server_with_role.rb
@@ -17,7 +17,7 @@ module Puppet::Parser::Functions
end
servers = servers_with_role(args)
- servers.count ? servers : fallback
+ servers.count ? servers[0] : fallback
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.