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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa860f2d0b1f76b57832f76f59fca7a37d484ff23ebf36b18a0f0518c65eb7fd
4
- data.tar.gz: cc0c3dea17b33199d70fb95c1106a8bd2de5a294c8fd95d548ed75192d07c3ab
3
+ metadata.gz: eec2798b3a9266305e0969dea9c28b61b84b7e253b5523e0afd885cc094e2a4c
4
+ data.tar.gz: b3cc12b6a745fa90c7230a562e1a4adb84b398eb641a8331b60ca6d819a64b96
5
5
  SHA512:
6
- metadata.gz: b024d2c07783b10bae0b21ae735ac3101638582f95e2b7176bc4532e8e65c75b930ed6ba460b870d71d2f1393dae40e8f6f6985cec51503c545aa81ef2537365
7
- data.tar.gz: 0aa8d70ad411dd1fffe781ffe24439792186e67d3a391e29b613ae05e42a065e8c238db5baa8d8ea7eea8905d7b9553eff63f2f72806c29d9565aba30c5430e2
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
- ssm_val = Uc3DmpApiCore::SsmReader.fetch_value(key:, logger:)
45
- return resp if ssm_val.nil?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpProvenance
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.16'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-provenance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley