lib/lamby/ssm_parameter_store.rb in lamby-2.2.0 vs lib/lamby/ssm_parameter_store.rb in lamby-2.2.1
- old
+ new
@@ -14,10 +14,10 @@
def dotenv(path)
new(path).get!.to_dotenv
end
def get!(path)
- parts = path.from(1).split('/')
+ parts = path[1..-1].split('/')
env = parts.pop
path = "/#{parts.join('/')}"
param = new(path).get!.params.detect do |p|
p.env == env
end