uc3-dmp-provenance 0.0.15 → 0.0.16
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-provenance/finder.rb +8 -2
- data/lib/uc3-dmp-provenance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec2798b3a9266305e0969dea9c28b61b84b7e253b5523e0afd885cc094e2a4c
|
4
|
+
data.tar.gz: b3cc12b6a745fa90c7230a562e1a4adb84b398eb641a8331b60ca6d819a64b96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57771cac44979220c1e56b37e10387df26ba9606f60d93fbac59a8a17f7a3bebbe22b3e4c4a3f3f0e7034116ecbdbe1ee15be5b8ea9ddc5a315507fcdb53fc52
|
7
|
+
data.tar.gz: 0f044503c02a805f32e4dc8bb2129bca783de6bf45e85c7270b841d322f5732494097dd3988ffb2fe05879c0644250df2eab96a94050ca76b3d8038375ea7ec0
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'aws-sdk-ssm'
|
4
|
+
|
3
5
|
require 'uc3-dmp-cognito'
|
4
6
|
require 'uc3-dmp-dynamo'
|
5
7
|
|
@@ -41,8 +43,12 @@ module Uc3DmpProvenance
|
|
41
43
|
|
42
44
|
# Fetch the list of RORs the provenance may access
|
43
45
|
key = "/uc3/dmp/tool/provenance/#{client_name}/ror_list"
|
44
|
-
|
45
|
-
|
46
|
+
begin
|
47
|
+
ssm_val = Uc3DmpApiCore::SsmReader.fetch_value(key:, logger:)
|
48
|
+
rescue Aws::SSM::Errors::ParameterNotFound
|
49
|
+
# If we get an error it is because the key doesn't exist, so just return as is
|
50
|
+
return resp
|
51
|
+
end
|
46
52
|
|
47
53
|
resp['ror_list'] = JSON.parse(ssm_val)
|
48
54
|
resp
|