You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2020/11/24 07:38:21 UTC

[camel-k] branch master updated: Sort the configurations before returning

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 280b623  Sort the configurations before returning
280b623 is described below

commit 280b62351d6b0dc27315fea1d521ca7c0cf6fb88
Author: kaczyns <ka...@us.ibm.com>
AuthorDate: Mon Nov 23 16:55:26 2020 -0500

    Sort the configurations before returning
---
 pkg/trait/util.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pkg/trait/util.go b/pkg/trait/util.go
index 7a28e6e..d8381bb 100644
--- a/pkg/trait/util.go
+++ b/pkg/trait/util.go
@@ -22,6 +22,7 @@ import (
 	"fmt"
 	"reflect"
 	"regexp"
+	"sort"
 	"strings"
 
 	user "github.com/mitchellh/go-homedir"
@@ -77,7 +78,9 @@ func CollectConfigurationValues(configurationType string, configurable ...v1.Con
 		}
 	}
 
-	return result.List()
+	s := result.List()
+	sort.Strings(s)
+	return s
 }
 
 // CollectConfigurationPairs --