mirror of https://github.com/apache/jclouds.git
catching exception thrown when user does not have CDN enabled...even if there are no CDN operations being called?
This commit is contained in:
parent
d8fc0a9786
commit
592c387330
|
@ -19,6 +19,7 @@
|
|||
package org.jclouds.hpcloud.objectstorage.blobstore.config;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
@ -72,6 +73,9 @@ public class HPCloudObjectStorageBlobStoreContextModule extends SwiftBlobStoreCo
|
|||
// TODO: this is due to beta status
|
||||
logger.trace("couldn't get cdn metadata for %s: %s", container, e.getMessage());
|
||||
return null;
|
||||
} catch (NoSuchElementException e) {
|
||||
logger.trace("CDN may not be enabled. Couldn't get cdn metadata for %s: %s", container, e.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue