Merge pull request #754 from andrewgaul/hp-cloud-account-regex

Loosen regex for parsing HP Cloud account
This commit is contained in:
Adrian Cole 2012-07-26 13:32:55 -07:00
commit c7976c8abc
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 + "([^/]+)/(.*)");