Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

win_regedit; fixes dword changed error 2273, improved error handling; and adds example showing quotes around reg paths containing spaces following https://github.com/ansible/ansible-modules-extras/issues/2340 #2436

Merged
merged 1 commit into from
Jun 16, 2016

Conversation

jhawkesworth
Copy link
Contributor

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

win_regedit

ANSIBLE VERSION
ansible 2.2.0 (more-regedit-tests 0a0b44baeb) last updated 2016/06/16 06:13:34 (GMT +100)
  lib/ansible/modules/core: (detached HEAD 138430f116) last updated 2016/06/12 06:32:34 (GMT +100)
  lib/ansible/modules/extras: (regedit_fixes bc3e6e0e90) last updated 2016/06/16 06:21:00 (GMT +100)
  config file = 
  configured module search path = Default w/o overrides

SUMMARY

An earlier change I made broke change detection for dword registry data type, as reported in #2273. I think this fix should be preferred to #2273 as this one does not then break the binary registry data type change detection.

Also this PR adds a check to ensure the registry key is in the powershell ps-drive format following #2412
and replaces the ' .GetType().Name -eq ' comparisons with more idiomatic '-is' tests (following conversation with @nitzmahone

Also I added an example of managing a registry path that contains spaces, so that module users know to quote them in order to avoid failures when the module is re-run, following on from #2340 (which the issue creator has now closed).

I will create a separate PR for the integration tests that exercise the new behavior and link to this PR.

@jhawkesworth
Copy link
Contributor Author

Integration tests for this change are in ansible/ansible#16319

@gregdek
Copy link
Contributor

gregdek commented Jun 16, 2016

Thanks @jhawkesworth. To the current maintainers, @joshludwig, @smadam813 please review according to guidelines (http://docs.ansible.com/ansible/developing_modules.html#module-checklist) and comment with text 'shipit', 'needs_revision' or 'close_me' as appropriate.

[This message brought to you by your friendly Ansibull-bot.]

@nitzmahone nitzmahone merged commit 07ed6bb into ansible:devel Jun 16, 2016
nitzmahone pushed a commit that referenced this pull request Jun 16, 2016
nitzmahone added a commit to ansible/ansible that referenced this pull request Jun 16, 2016
@smadam813
Copy link

Good work @jhawkesworth! Tested locally and all seems well.

shipit

Constantin07 pushed a commit to Constantin07/ansible-modules-extras that referenced this pull request Jun 28, 2016
haad pushed a commit to haad/ansible-modules-extras that referenced this pull request Jun 29, 2016
dfjaimes pushed a commit to dfjaimes/ansible-modules-extras that referenced this pull request Jul 2, 2016
@jhawkesworth jhawkesworth deleted the regedit_fixes branch July 8, 2016 07:39
t-v pushed a commit to t-v/ansible-modules-extras that referenced this pull request Jul 12, 2016
perzizzle pushed a commit to perzizzle/ansible-modules-extras that referenced this pull request Jul 12, 2016
keachi pushed a commit to adfinis-forks/ansible-modules-extras that referenced this pull request Aug 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants