-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
win_service: quoted path fix #32469
win_service: quoted path fix #32469
Conversation
Code looks good to me, but wondering whether we should have a different name instead of 'path' as it seems to mean 'path to command including arguments'. Perhaps just alias 'path' as 'command_line'? Probably not worth doing unless it is a distinction and a convention we want to adopt across modules. Having a type for paths is nice as that's something you can check for correctness - command lines aren't really something we would ever be able to validate though. |
From @dssdss at #32368 (comment) Now, it works! Thank you very much. |
@jhawkesworth we can add an alias, as the |
* win_service: fix for path in quotes * Added tests to verify behaviour doesn't regress (cherry picked from commit 5b1db00)
* win_service: fix for path in quotes * Added tests to verify behaviour doesn't regress (cherry picked from commit 5b1db00)
SUMMARY
In 2.4, the powershell type of
path
has an explicit check as to whether it is a valid path or not. Thewin_service
module used this for thepath
check but it is a valid scenario to quote this value which fails in 2.4. This change removes thepath
type forpath
but it will still expand the environment variables like before. Includes an integration test to ensure it doesn't regress again in the future.Fixes #32368
ISSUE TYPE
COMPONENT NAME
win_service
ANSIBLE VERSION