mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Deep-clone so modifying credentials in method does not affect original credentials.
This commit is contained in:
parent
337eb79b61
commit
d74c0bb679
@ -226,7 +226,7 @@ class AwsProvider {
|
||||
*/
|
||||
request(service, method, params, options) {
|
||||
const that = this;
|
||||
const credentials = that.getCredentials();
|
||||
const credentials = _.cloneDeep(that.getCredentials());
|
||||
// Make sure options is an object (honors wrong calls of request)
|
||||
const requestOptions = _.isObject(options) ? options : {};
|
||||
const shouldCache = _.get(requestOptions, 'useCache', false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user