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

Cleanup windows_printer_port and allow updating the port #11662

Merged
merged 4 commits into from
Jun 7, 2021

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Jun 6, 2021

  • Avoid double logging caused by converge_by and powershell_script
  • Remove all the slow use of powershell_script
  • Set the default for portname on the resource instead of calculating it the same in 3 places
  • Load the state fully / remove the exists? method
  • Delete the power with the powershell cmdlet
  • Add updating to the create action
  • Deprecate the description property which never did anything

image

Signed-off-by: Tim Smith tsmith@chef.io

We already use converge_by here so there's no need to then use
powershell_script which is slower than just running powershell_exec!

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners June 6, 2021 00:56
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 changed the title Speed up / avoid double logging in windows_printer_port Cleanup windows_printer_port and allow updating the port Jun 6, 2021
@tas50 tas50 force-pushed the windows_printer_port branch 4 times, most recently from 87a957f to 4e523a2 Compare June 6, 2021 07:22
Load the state fully / remove the exists? method
Delete the power with the powershell cmdlet
Add updating to the create action
Deprecate the description property which never did anything

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 force-pushed the windows_printer_port branch 4 times, most recently from b1bb8d2 to 3387056 Compare June 6, 2021 18:21
Signed-off-by: Tim Smith <tsmith@chef.io>
@lamont-granquist lamont-granquist merged commit 2eaa37c into master Jun 7, 2021
@lamont-granquist lamont-granquist deleted the windows_printer_port branch June 7, 2021 17:24
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 this pull request may close these issues.

None yet

2 participants