-
Notifications
You must be signed in to change notification settings - Fork 419
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
[BUG] salt['cmd.run']("id -un") failed on Windows 10 #495
Comments
Thanks for the report, @kartnico. As you can see under the
From a quick look around, it appears that the https://ss64.com/nt/whoami.html
Can you try that out and see if it works for you? |
works on Windows 10. |
Tested Would need to figure out how to ensure the same value is extracted. |
Could you try this ?
It works also for me. |
@kartnico Due to the nature of Tried various other combinations but finally found one that works properly: {%- set rootuser = salt['cmd.run']("whoami").split("\\")[1] %} That's working on Vagrant (locally) as well as in GitHub Actions: |
It also works for me. Thank you. |
Closed in error. |
Thanks for reopening, @dafyddj -- the fix still needs to be provided here, since it was only tested in my fork. |
## [1.8.1](v1.8.0...v1.8.1) (2021-03-30) ### Bug Fixes * **freebsd:** update to provide support for most recent versions ([24ebbb4](24ebbb4)) * **openbsd:** update to provide support for most recent versions ([61201de](61201de)) * **osfamilymap:** use `whoami` for Windows `rootuser` ([69d5981](69d5981)), closes [#495](#495) ### Code Refactoring * **retry_options:** provide options from defaults/pillar ([bbd7286](bbd7286)) ### Continuous Integration * enable Vagrant-based testing using GitHub Actions ([163c77f](163c77f)) * **kitchen+ci:** use latest pre-salted images (after CVE) [skip ci] ([cfefcc8](cfefcc8)) * **windows:** use `kitchen.windows.yml` ([c6043fb](c6043fb)) ### Documentation * **readme:** add `Testing with Vagrant` section ([ef1bc02](ef1bc02)) ### Tests * update for new platforms (inc. using `system` library) ([e6bcdc1](e6bcdc1)) * **_mapdata:** add Arch Linux verification file ([e31a56e](e31a56e)) * add Windows map verification files ([e0afe89](e0afe89)) * standardise use of `share` suite & `_mapdata` state [skip ci] ([9816f47](9816f47))
🎉 This issue has been resolved in version 1.8.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Formula commit hash / release tag
commit a1b4887
Author: semantic-release-bot semantic-release-bot@martynus.net
Date: Wed Dec 23 18:54:47 2020 +0000
Versions reports (master & minion)
minion :
master :
Pillar / config used
Bug details
Describe the bug
The text was updated successfully, but these errors were encountered: