mirror of https://github.com/apache/jclouds.git
Merge pull request #754 from andrewgaul/hp-cloud-account-regex
Loosen regex for parsing HP Cloud account
This commit is contained in:
commit
c7976c8abc
|
@ -43,7 +43,7 @@ import org.jclouds.rest.AuthorizationException;
|
||||||
public class ParseSwiftErrorFromHttpResponse implements HttpErrorHandler {
|
public class ParseSwiftErrorFromHttpResponse implements HttpErrorHandler {
|
||||||
@Resource
|
@Resource
|
||||||
protected Logger logger = Logger.NULL;
|
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_PATH = Pattern.compile(PREFIX + "([^/]+)$");
|
||||||
public static final Pattern CONTAINER_KEY_PATH = Pattern.compile(PREFIX + "([^/]+)/(.*)");
|
public static final Pattern CONTAINER_KEY_PATH = Pattern.compile(PREFIX + "([^/]+)/(.*)");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue