Skip to content

Commit

Permalink
graphite_carbon_conf_accumulator: Do not install whisper with :delete…
Browse files Browse the repository at this point in the history
… action
  • Loading branch information
zuazo committed Jun 18, 2015
1 parent 3dacdea commit fab355b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions definitions/graphite_carbon_conf_accumulator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
rescue Chef::Exceptions::ResourceNotFound
python_pip backend_name do
Chef::Log.info "Installing storage backend: #{package_name}"
only_if { params[:action] == :create }
action :install
end
end
Expand Down
4 changes: 4 additions & 0 deletions spec/definitions/carbon_conf_accumulator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
it 'delete the file template' do
expect(recipe_run).to delete_template('carbon.conf')
end

it 'does not install whisper' do
expect(recipe_run).to_not install_python_pip('whisper')
end
end

context 'with configuation options' do
Expand Down

0 comments on commit fab355b

Please sign in to comment.