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

dsc_service throws error when client is false #1046

Closed
treydock opened this issue Jan 12, 2019 · 1 comment · Fixed by #1047
Closed

dsc_service throws error when client is false #1046

treydock opened this issue Jan 12, 2019 · 1 comment · Fixed by #1047

Comments

@treydock
Copy link
Collaborator

Running acceptance tests against Windows ran into this error:

  Error: PowerShell DSC resource MSFT_ServiceResource  failed to execute Set-TargetResource functionality with error message: The service 'sensu-client' to create already exists with path 'c:\opt\sensu\bin\sensu-client.exe'
  Error: /Stage[main]/Sensu::Client/Dsc_service[sensu-client]/ensure: change from 'absent' to 'present' failed: PowerShell DSC resource MSFT_ServiceResource  failed to execute Set-TargetResource functionality with error message: The service 'sensu-client' to create already exists with path 'c:\opt\sensu\bin\sensu-client.exe'
  Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Dependency Dsc_service[sensu-client] has failures: true
  Warning: /Stage[main]/Sensu::Client/Service[sensu-client]: Skipping because of failed dependencies
@ghoneycutt
Copy link
Collaborator

Released in v2.62.0

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

Successfully merging a pull request may close this issue.

2 participants