Skip to content

Instantly share code, notes, and snippets.

@muhqu
Created May 30, 2012 08:39
Show Gist options
  • Select an option

  • Save muhqu/2834585 to your computer and use it in GitHub Desktop.

Select an option

Save muhqu/2834585 to your computer and use it in GitHub Desktop.
diff --git a/aws-sdk-1.5.4/services/dynamodb.class.php b/aws-sdk-1.5.4/services/dynamodb.class.php
index cf43ec2..a408e9f 100644
--- a/aws-sdk-1.5.4/services/dynamodb.class.php
+++ b/aws-sdk-1.5.4/services/dynamodb.class.php
@@ -240,7 +240,14 @@ class AmazonDynamoDB extends CFRuntime
throw new DynamoDB_Exception('The DynamoDB class requires the "default_cache_config" configuration to be set in the config.inc.php file.');
// @codeCoverageIgnoreEnd
}
-
+
+ $this->refresh_sts_credentials_options = $options;
+ $this->refresh_sts_credentials();
+ }
+
+ function refresh_sts_credentials() {
+ $options = $this->refresh_sts_credentials_options;
+
// Configure cache
$this->set_cache_config($this->credentials->default_cache_config);
$cache_id = $this->key . '_sts_credentials_' . sha1(serialize($options));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment