Skip to content

Commit

Permalink
Fix ordering of secrets plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Sep 28, 2022
1 parent cf76ca3 commit 1c6a3d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vault/logical_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (b *SystemBackend) handlePluginCatalogUntypedList(ctx context.Context, _ *l
}

// Sort for consistent ordering
sortVersionedPlugins(versionedPlugins)
sortVersionedPlugins(versioned)

versionedPlugins = append(versionedPlugins, versioned...)
}
Expand Down
2 changes: 1 addition & 1 deletion vault/logical_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5086,7 +5086,7 @@ func TestSortVersionedPlugins(t *testing.T) {
// Include differing versions twice so we can test out equality too.
"differing types, names and versions": append(differingTypes,
append(differingNames,
append(differingVersions, differingVersions...)...)...),
append(differingVersions, differingTypes...)...)...),
"mix of unversioned, versioned, and builtin": versionedUnversionedAndBuiltin,
} {
t.Run(name, func(t *testing.T) {
Expand Down

0 comments on commit 1c6a3d1

Please sign in to comment.