diff --git a/ui/src/config/section/iam.js b/ui/src/config/section/iam.js index 3f00ae7c46e..c96f550adca 100644 --- a/ui/src/config/section/iam.js +++ b/ui/src/config/section/iam.js @@ -113,7 +113,7 @@ export default { args: ['account', 'domainid'], mapping: { account: { - value: (record) => { return record.account } + value: (record) => { return record.name } }, domainid: { value: (record) => { return record.domainid } diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 06ecdcd9607..6ecb3e7494f 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -565,17 +565,17 @@ export default { } } - console.log(this.currentAction) - if (this.currentAction.mapping) { for (const key in this.currentAction.mapping) { if (!this.currentAction.mapping[key].value) { continue } - var keyName = this.currentAction.mapping[key].rename ? this.currentAction.mapping[key].rename : key - params[keyName] = this.currentAction.mapping[key].value(this.resource, params) + params[key] = this.currentAction.mapping[key].value(this.resource, params) } } + + console.log(this.currentAction) + console.log(this.resource) console.log(params) var hasJobId = false