Skip to content

Commit

Permalink
need to init chef clients before deleting data bag items
Browse files Browse the repository at this point in the history
  • Loading branch information
pghalliday committed Nov 18, 2015
1 parent 3fe998c commit ed3a141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/formatron.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def _destroy_chef_instances
# rubocop:disable Metrics/MethodLength
def _destroy_chef_vpc_instances(key, instances)
chef_clients = @chef_clients[key]
chef_clients.init
chef_clients.delete_databags
instances.values.each do |instance|
dsl_chef = instance.chef
Expand Down

0 comments on commit ed3a141

Please sign in to comment.