@Override public void execute() { BlockStorageUtils.removeBlockResources(uris(volumeIds), deletionType); // form is always passing hostId, never clusterId - need to figure out which it is. String hostOrClusterId = BlockStorageUtils.getHostOrClusterId(hostId); if (hostOrClusterId != null) { ExecutionUtils.addAffectedResource(hostOrClusterId.toString()); } }
@Override public void execute() throws Exception { connectAndInitializeHost(); datastore = vmware.getDatastore(datacenter.getLabel(), datastoreName); vmware.extendVmfsDatastore(host, cluster, hostId, volume, datastore); if (hostId != null) { ExecutionUtils.addAffectedResource(hostId.toString()); } vmware.setMultipathPolicy(host, cluster, multipathPolicy, volume); }