package rhogenwizard.sdk.task.liveupdate;

import java.util.Arrays;
import java.util.List;

import rhogenwizard.SysCommandExecutor;
import rhogenwizard.sdk.task.RubyExecTask;

public class PrintSubnetsTask extends RubyExecTask 
{
	public PrintSubnetsTask(String workDir)
	{
		super(workDir, SysCommandExecutor.RUBY_BAT, "rake", "dev:network:list");
	}
	
	public List<String> getSubnets()
	{
		String out = getOutput();
		
		List<String> subnetsList = Arrays.asList(out.split(";"));
		
		return subnetsList;
	}
} 

package rhogenwizard.sdk.task.liveupdate;

import java.util.Arrays;
import java.util.List;

import rhogenwizard.SysCommandExecutor;
import rhogenwizard.sdk.task.RubyExecTask;

public class PrintSubnetsTask extends RubyExecTask 
{
	public PrintSubnetsTask(String workDir)
	{
		super(workDir, SysCommandExecutor.RUBY_BAT, "rake", "dev:network:list");
	}
	
	public List<String> getSubnets()
	{
		String out = getOutput();
		
		out = out.replaceAll("\\p{Cntrl}", "");  
	
		List<String> subnetsList = Arrays.asList(out.split(";"));
		
		return subnetsList;
	}
} 

fix EMBPD00165908