mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Switch to lodash get.
This commit is contained in:
parent
20401e7c3c
commit
58c8352ec2
@ -691,7 +691,7 @@ class Variables {
|
||||
{ useCache: true }) // Use request cache
|
||||
.then(response => BbPromise.resolve(response.Parameter.Value))
|
||||
.catch((err) => {
|
||||
if (err.providerError.code !== 'ParameterNotFound') {
|
||||
if (_.get(err, 'providerError.code') !== 'ParameterNotFound') {
|
||||
return BbPromise.reject(new this.serverless.classes.Error(err.message));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user