Skip to content

Commit 06c8743

Browse files
iam: fix updateResourceCount API action for account
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 7a3d34b commit 06c8743

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ui/src/config/section/iam.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default {
113113
args: ['account', 'domainid'],
114114
mapping: {
115115
account: {
116-
value: (record) => { return record.account }
116+
value: (record) => { return record.name }
117117
},
118118
domainid: {
119119
value: (record) => { return record.domainid }

ui/src/views/AutogenView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,17 +565,17 @@ export default {
565565
}
566566
}
567567
568-
console.log(this.currentAction)
569-
570568
if (this.currentAction.mapping) {
571569
for (const key in this.currentAction.mapping) {
572570
if (!this.currentAction.mapping[key].value) {
573571
continue
574572
}
575-
var keyName = this.currentAction.mapping[key].rename ? this.currentAction.mapping[key].rename : key
576-
params[keyName] = this.currentAction.mapping[key].value(this.resource, params)
573+
params[key] = this.currentAction.mapping[key].value(this.resource, params)
577574
}
578575
}
576+
577+
console.log(this.currentAction)
578+
console.log(this.resource)
579579
console.log(params)
580580
581581
var hasJobId = false

0 commit comments

Comments
 (0)