mirror of https://github.com/apache/jclouds.git
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:
parent
cd48729f65
commit
ebc65ec8f3
|
@ -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 + "([^/]+)/(.*)");
|
||||
|
||||
|
|
Loading…
Reference in New Issue