Skip to content

Commit

Permalink
fix: load secret from env if invalid parent (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenkristian authored Sep 2, 2022
1 parent bfa5f2f commit e93eed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gcloud-secret-manager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export class GCloudSecretManagerService<T> {

this._gCloudSecretManagerService = new GCloudSecretManagerService(secretsList);
} catch (err) {
throw new Error(err);
this._gCloudSecretManagerService = new GCloudSecretManagerService(new Map(Object.entries(listKeyValue)));
return this._gCloudSecretManagerService;
}
}

Expand Down

0 comments on commit e93eed8

Please sign in to comment.