> @@ -108,7 +109,7 @@ public Statement apply(String group) {
>              String.format("chef_server_url \"%s\"", endpoint.get())));
>  
>        Statement createValidationPem = appendFile(chefConfigDir + 
> "{fs}validation.pem",
> -            Splitter.on('\n').split(Pems.pem(validatorKey)));
> +            
> Splitter.on(Pattern.compile("(\\r\\n)|(\\n)")).split(Pems.pem(validatorKey)));

Is it worth saving this as a constant rather than compiling this for every 
invocation? Or does `Pattern.compile` do this internally anyway?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-chef/pull/5/files#r4931164

Reply via email to