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

Windows Path needs Updated - chef undelete --last on Windows returns with "No undo records exist" but they do. #2901

Open
snohio opened this issue Aug 1, 2022 · 0 comments
Labels
Platform: Windows Priority: Low Status: Good First Issue An issue ready for a new contributor. Triage: Confirmed Indicates and issue has been confirmed as described.

Comments

@snohio
Copy link

snohio commented Aug 1, 2022

Description

chef undelete --last on Windows returns with:

PS C:\Users\butler\sa-demo-content\policies> chef undelete --last
Error: Failed to undelete.
Reason: (ChefCLI::CantUndo) No undo records exist in C:\Users\butler\AppData\Local/chef-workstation/undo

The PATH is a mix of forward and backward slashes.. If I look in the proper folder, there are UNDO files as such:

PS C:\Users\butler\AppData\Local\chef-workstation\undo> ls

    Directory: C:\Users\butler\AppData\Local\chef-workstation\undo

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---           1/14/2022 10:02 AM          17951 20220114150203
-a---           7/20/2022 10:13 AM           1758 20220720141322
-a---           7/20/2022 10:13 AM           3408 20220720141335
-a---           7/20/2022 10:16 AM           3461 20220720141624
-a---           7/20/2022 11:48 AM           7642 20220720154827
-a---           7/20/2022 11:48 AM           3218 20220720154838
-a---            8/1/2022  9:26 AM           3410 20220801132655

Chef Workstation Version

PS C:\Users\butler\AppData\Local\chef-workstation\undo> chef -v
Chef Workstation version: 22.7.1006
Chef Infra Client version: 17.10.0
Chef InSpec version: 4.56.20
Chef CLI version: 5.6.1
Chef Habitat version: 1.6.420
Test Kitchen version: 3.3.1
Cookstyle version: 7.32.1

Platform Version

Windows 10 Enterprise

@snohio snohio added the Status: Untriaged An issue that has yet to be triaged. label Aug 1, 2022
@vkarve-chef vkarve-chef added Triage: Confirmed Indicates and issue has been confirmed as described. Platform: Windows Status: Good First Issue An issue ready for a new contributor. Priority: Low and removed Status: Untriaged An issue that has yet to be triaged. labels Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Priority: Low Status: Good First Issue An issue ready for a new contributor. Triage: Confirmed Indicates and issue has been confirmed as described.
Projects
None yet
Development

No branches or pull requests

2 participants