catching exception thrown when user does not have CDN enabled...even if there are no CDN operations being called?

This commit is contained in:
Mike Arnold 2012-03-20 22:46:13 -05:00
parent d8fc0a9786
commit 592c387330
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}