I did think about removing it, but it's harmless and would help if someone uses the #ftl prefix

Martin Harris
Lead Software Engineer, AgriWise Solutions
Cloudsoft Corporation Ltd
www.cloudsoftcorp.com


> On 13 Mar 2014, at 21:01, Andrew Kennedy <notifications@github.com> wrote:
> 
> In core/src/main/java/brooklyn/location/cloud/CustomMachineNamer.java:
> 
> > +        Object context = setup.peek(CloudLocationConfig.CALLER_CONTEXT);
> > +        Entity entity = null;
> > +        if (context instanceof Entity) {
> > +            entity = (Entity) context;
> > +        }
> > +        
> > +        String template = this.setup.get(MACHINE_NAME_TEMPLATE);
> > +        
> > +        String processed;
> > +        if (entity == null) {
> > +            processed = TemplateProcessor.processTemplateContents(template, this.setup.get(EXTRA_SUBSTITUTIONS));
> > +        } else {
> > +            processed = TemplateProcessor.processTemplateContents(template, (EntityInternal)entity, this.setup.get(EXTRA_SUBSTITUTIONS));
> > +        }
> > +        
> > +        processed = Strings.removeFromStart(processed, "#ftl\n");
> Can this not be removed now?
> 
> —
> Reply to this email directly or view it on GitHub.