Display all data volumes for vm while destroying (#915)

If a root admin tries to destroy VM of different
domain then the data disks are not displayed and
hence they wont be destroyed.
Make sure that root admin can see all data disks
of a vm while destroying it

Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rakesh 2021-01-13 16:39:51 +01:00 committed by Rohit Yadav
parent 58b1b2f8b3
commit e9df682021

View File

@ -97,7 +97,8 @@ export default {
api('listVolumes', {
virtualMachineId: this.resource.id,
type: 'DATADISK',
details: 'min'
details: 'min',
listall: 'true'
}).then(json => {
this.volumes = json.listvolumesresponse.volume || []
}).finally(() => {