예제 #1
0
 /** Removes this disk without confirmation dialog. */
 @Override
 protected void removeMyselfNoConfirm(final boolean testOnly) {
   final String virshOptions = getVMSVirtualDomainInfo().getVirshOptions();
   for (final Host h : getVMSVirtualDomainInfo().getDefinedOnHosts()) {
     final VMSXML vmsxml = getBrowser().getVMSXML(h);
     if (vmsxml != null) {
       final Map<String, String> parameters = new HashMap<String, String>();
       parameters.put(DiskData.SAVED_TARGET_DEVICE, getName());
       vmsxml.removeDiskXML(getVMSVirtualDomainInfo().getDomainName(), parameters, virshOptions);
     }
   }
   getBrowser().periodicalVMSUpdate(getVMSVirtualDomainInfo().getDefinedOnHosts());
   removeNode();
 }