Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove action for newrelic_agent_dotnet doesn't seem to work #338

Open
scolligan opened this issue Mar 14, 2018 · 1 comment
Open

Remove action for newrelic_agent_dotnet doesn't seem to work #338

scolligan opened this issue Mar 14, 2018 · 1 comment
Assignees

Comments

@scolligan
Copy link

Hello,

In my testing today, I'm unable to get the dotnet agent to uninstall using the following code:

# set flag to indicate if newrelic agents should be removed based on presence of tag
should_remove = tagged?('ops-remove-newrelic')

Chef::Log.info("should_remove = #{should_remove}")

# install newrelic apm agent
newrelic_agent_dotnet 'NewRelic APM Agent' do
  license node['jjk_ts_transport_webserver_newrelic']['license_key']
  action (should_remove ? :remove : :install)
end

I've also tried explicitly using the :remove action, but the chef-client output continues to say the resource is up to date.

OS: Windows Server 2016 on Azure
Cookbook Version: 2.35.0
Chef Client: 13.8.5

Thanks,

Sean

@djoos
Copy link
Member

djoos commented Apr 9, 2018

Hi @scolligan,

thanks for reaching out!

Was the windows_package resource called at all with action remove? Would you mind posting the output of your chef client run?

Thanks in advance!
David

@djoos djoos self-assigned this Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants