diff --git a/contrib/ansible/genkeys.go b/contrib/ansible/genkeys.go index 22418a0c..7df2e588 100644 --- a/contrib/ansible/genkeys.go +++ b/contrib/ansible/genkeys.go @@ -117,6 +117,8 @@ func bubbleUpTo(sets []keySet, num int) []keySet { var tmp = sets[i] sets[i] = sets[i + 1] sets[i + 1] = tmp + } else { + break } } return sets