Skip to content

Commit

Permalink
Merge pull request #174 from Wing924/patch-1
Browse files Browse the repository at this point in the history
fix typo: influxdb retention_policies attr name
  • Loading branch information
bdangit authored Nov 17, 2018
2 parents 930d0e2 + 037d4b9 commit 6a8f3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/retention_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

action :create do
if current_policy
if current_policy['duration'] != new_resource.duration || current_policy['replicaN'] != new_resource.replication || current_policy['default'] != new_resource.default || current_policy['shard_duration'] != new_resource.shard_duration
if current_policy['duration'] != new_resource.duration || current_policy['replicaN'] != new_resource.replication || current_policy['default'] != new_resource.default || current_policy['shardGroupDuration'] != new_resource.shard_duration
converge_by 'updated retention policy' do
client.alter_retention_policy(new_resource.policy_name, new_resource.database, new_resource.duration, new_resource.replication, new_resource.default, shard_duration: new_resource.shard_duration)
end
Expand Down

0 comments on commit 6a8f3e5

Please sign in to comment.