File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ assignVirtualMachine=7
7171migrateVirtualMachine=1
7272migrateVirtualMachineWithVolume=1
7373recoverVirtualMachine=7
74- expungeVirtualMachine=1
74+ expungeVirtualMachine=7
7575
7676#### snapshot commands
7777createSnapshot=15
Original file line number Diff line number Diff line change 17651765 else if ( isAdmin ( ) )
17661766 jsonObj = $ . extend ( args . context . instances [ 0 ] , {
17671767 state : "Expunged"
1768- } ) ; //after root admin expunge a VM, listVirtualMachines API will no longer returns this expunged VM to all users.
1768+ } ) ; //after root/domain admin expunge a VM, listVirtualMachines API will no longer returns this expunged VM to all users.
17691769 else
17701770 jsonObj = $ . extend ( args . context . instances [ 0 ] , {
17711771 state : "Destroyed"
21012101 if ( isAdmin ( ) || isDomainAdmin ( ) ) {
21022102 allowedActions . push ( "restore" ) ;
21032103 }
2104- if ( isAdmin ( ) )
2104+ if ( isAdmin ( ) || isDomainAdmin ( ) )
21052105 allowedActions . push ( "expunge" ) ;
21062106 } else if ( jsonObj . state == 'Running' ) {
21072107 allowedActions . push ( "stop" ) ;
21612161 } else if ( jsonObj . state == 'Error' ) {
21622162 allowedActions . push ( "destroy" ) ;
21632163 } else if ( jsonObj . state == 'Expunging' ) {
2164- if ( isAdmin ( ) )
2164+ if ( isAdmin ( ) || isDomainAdmin ( ) )
21652165 allowedActions . push ( "expunge" ) ;
21662166 }
21672167 return allowedActions ;
You can’t perform that action at this time.
0 commit comments