uc3-dmp-api-core 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-api-core/responder.rb +1 -2
- data/lib/uc3-dmp-api-core/ssm_reader.rb +2 -3
- data/lib/uc3-dmp-api-core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 814a119b8bc2cae5b1019b447d206158f32af4322d7027c5d67692790662b620
|
4
|
+
data.tar.gz: 706c0127627df31924c712de0129f09e721d6659b8f04c0ce7ebdc4a819f1f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa2fb5aeea37687db35306f41c775ca5497f5184d5e04750830b8d2c9cd87a79d34e3c54c399f2531aa244d5bdf4f0e2c02684131f57d0892a06a0012fc9351
|
7
|
+
data.tar.gz: e0b90e46aac95b8d63f355e5e4198f0c99d3888a05abda1ac48e45ca5fcaef77ad38f479263e215e080ece7cf74d909604c221648dac86845a8957674bc59e44
|
@@ -51,8 +51,7 @@ module Uc3DmpApiCore
|
|
51
51
|
|
52
52
|
{ statusCode: status.to_i, body: body.compact.to_json, headers: headers }
|
53
53
|
rescue StandardError => e
|
54
|
-
|
55
|
-
puts " - STACK: #{e.backtrace}"
|
54
|
+
logger.error(message: e.message, details: e.backtrace) unless logger.nil?
|
56
55
|
_standard_error(url: url)
|
57
56
|
end
|
58
57
|
# rubocop:enable Metrics/AbcSize
|
@@ -22,16 +22,15 @@ module Uc3DmpApiCore
|
|
22
22
|
# rubocop:disable Metrics/AbcSize
|
23
23
|
def get_ssm_value(key:, provenance_name: nil, logger: nil)
|
24
24
|
full_key = _ssm_keys[:"#{key.downcase}"] unless key.nil?
|
25
|
-
logger.debug(message: "Looking for SSM Key: #{full_key}")
|
25
|
+
logger.debug(message: "Looking for SSM Key: #{full_key}") unless logger.nil?
|
26
26
|
return nil if full_key.nil?
|
27
27
|
|
28
28
|
key_vals = { env: ENV.fetch('LAMBDA_ENV', 'dev').to_s.downcase }
|
29
29
|
# Swap in the provenance name if applicable
|
30
30
|
key_vals[:provenance] = provenance_name unless provenance_name.nil? ||
|
31
31
|
!full_key.include?('%{provenance}')
|
32
|
-
fetch_value(key: format(full_key, key_vals, logger: logger)
|
32
|
+
fetch_value(key: format(full_key, key_vals), logger: logger)
|
33
33
|
rescue Aws::Errors::ServiceError => e
|
34
|
-
puts "Fatal error in #{SOURCE} - #{e.message}" if logger.nil?
|
35
34
|
logger.error(message: "Looking for SSM Key: #{key} - #{e.message}", details: e.backtrace) unless logger.nil?
|
36
35
|
nil
|
37
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uc3-dmp-api-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|