use of com.iwave.ext.linux.command.CheckForFileSystemCompatibilityCommand in project coprhd-controller by CoprHD.
the class CheckForFileSystemCompatibility method execute.
@Override
public void execute() throws Exception {
CheckForFileSystemCompatibilityCommand command = new CheckForFileSystemCompatibilityCommand();
command.setFileSystemType(fsType);
executeCommand(command, SHORT_TIMEOUT);
CommandOutput output = command.getOutput();
if (!output.getStdout().contains(fsType)) {
throw stateException("CheckForFileSystemCompatibility.illegalState.fileSystemTypeUnsupported", fsType);
}
}
Aggregations