Loosen regex for parsing HP Cloud account

My account has only digits without an underscore.  The failed regex
match caused calls to blobExists to throw an exception when the blob
did not exist.
This commit is contained in:
Andrew Gaul 2012-07-26 12:34:06 -07:00 committed by Andrew Gaul
parent cd48729f65
commit ebc65ec8f3
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ import org.jclouds.rest.AuthorizationException;
public class ParseSwiftErrorFromHttpResponse implements HttpErrorHandler {
@Resource
protected Logger logger = Logger.NULL;
public static final String PREFIX = "^/v[0-9][^/]*/[a-zA-Z]+_[^/]+/";
public static final String PREFIX = "^/v[0-9][^/]*/[^/]+/";
public static final Pattern CONTAINER_PATH = Pattern.compile(PREFIX + "([^/]+)$");
public static final Pattern CONTAINER_KEY_PATH = Pattern.compile(PREFIX + "([^/]+)/(.*)");