Fix JinJa template to do proper CSV 63/57463/1
authorDaniel Farrell <dfarrell@redhat.com>
Wed, 13 May 2015 04:54:56 +0000 (00:54 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 16:52:22 +0000 (12:52 -0400)
There wasn't a comma between the last default feature
and the first extra feature. We now get a properly-formated
CSV list when passing extra features.

Relevant to Issue #1.

Change-Id: Ibb4f364c5d5169d758147e0a6de8c7859e5800ef
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
templates/org.apache.karaf.features.cfg

index 9b20f6647149e415f72698248dcb40f6ac8beae9..11ecf83bc35343dfecf81c5de21245d7eae823b8 100644 (file)
@@ -45,7 +45,7 @@ featuresRepositories = mvn:org.apache.karaf.features/standard/3.0.1/xml/features
 #
 {# Defaults are specified in vars/main.yml of the ODL Ansible role. #}
 {# Those are normally overridden by the role consumer, per their use-case. #}
-featuresBoot={{ default_features|join(',') }}{{ extra_features|join(',') }}
+featuresBoot={{ [default_features|join(','), extra_features|join(',')]|join(',') }}
 
 #
 # Defines if the boot features are started in asynchronous mode (in a dedicated thread)