Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Add version 1 if KV engine has no version data #23585

Merged
merged 10 commits into from
Oct 11, 2023
6 changes: 6 additions & 0 deletions ui/app/serializers/secret-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export default ApplicationSerializer.extend(EmbeddedRecordsMixin, {
// strip the trailing slash off of the path so we
// can navigate to it without getting `//` in the url
struct.id = struct.path.slice(0, -1);

// enabling kv in the CLI without a version flag mounts a v1 engine
// however, the options object is null so setting version number manually
if (backend.type === 'kv' && !backend.options) {
backend.options = { version: 1 };
}
return struct;
},

Expand Down