Commit 1f051890 authored by gokulgurumurthy-alation's avatar gokulgurumurthy-alation
Browse files

fixes #160 credentials passed as strings for non data-bag keys

parent a4d6daf9
......@@ -8,6 +8,9 @@ This CHANGELOG (now) follows the format listed at [Keep A Changelog](http://keep
- Added securefiles boolean flag in installer to enable or disable enhanced file security.
- added fields support to user.properties
### Changed
- Pass SSM credentials as strings and data bag credentails as symbols
## [1.4.0] - 2018-06-26
### Added
- Added `cutoffTimestamp` and `cutoffRelativeTime` properties.
......
......@@ -87,6 +87,11 @@ template node['sumologic']['sumo_conf_path'] do
end
# this may look strange, but one pair will be nil, so it all works out
variables(accessID: credentials[:accessID],
accessKey: credentials[:accessKey])
if node.run_state['sumo_key_id'] && node.run_state['sumo_key_secret']
variables(accessID: credentials['accessID'],
accessKey: credentials['accessKey'])
else
variables(accessID: credentials[:accessID],
accessKey: credentials[:accessKey])
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment