Remap rke.windows to rke for logging values (#2684)

This commit is contained in:
Vincent Fiduccia 2021-04-13 11:18:55 -07:00
parent 779896f0db
commit 19c9e7c379
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
1 changed files with 8 additions and 2 deletions

View File

@ -22,9 +22,15 @@ export default {
},
created() {
let provider = this.provider;
if ( provider.startsWith('rke.') ) {
provider = 'rke';
}
this.$set(this.value, 'additionalLoggingSources', this.value.additionalLoggingSources || {});
this.$set(this.value.additionalLoggingSources, this.provider, this.value.additionalLoggingSources[this.provider] || {});
this.$set(this.value.additionalLoggingSources[this.provider], 'enabled', true);
this.$set(this.value.additionalLoggingSources, provider, this.value.additionalLoggingSources[provider] || {});
this.$set(this.value.additionalLoggingSources[provider], 'enabled', true);
this.$set(this.value, 'global', this.value.global || {});
},
};