mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
iam: fix updateResourceCount API action for account
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
7a3d34b36f
commit
06c8743207
@ -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 }
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user