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

Fixes #6929: Windows is unable to load ncf directories #714

Conversation

Kegeruneku
Copy link

@Kegeruneku
Copy link
Author

Do not merge yet

@Kegeruneku Kegeruneku force-pushed the bug_6929/windows_is_unable_to_load_ncf_directories branch 3 times, most recently from a6c6736 to 56c8354 Compare July 6, 2015 10:33
@Kegeruneku
Copy link
Author

PR updated

@Kegeruneku Kegeruneku force-pushed the bug_6929/windows_is_unable_to_load_ncf_directories branch from 56c8354 to db9745e Compare July 6, 2015 11:04
"ncf_common_inputs_50" slist => splitstring(execresult("c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command \"ls -Path 'c:\Program Files\Rudder\var\ncf\common\50_techniques' -Name *.cf -Recurse | % { Write-Host c:\Program Files\Rudder\var\ncf\common\50_techniques\$_ }\"", "useshell"), "\n", 10000);
"ncf_common_inputs_60" slist => splitstring(execresult("c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command \"ls -Path 'c:\Program Files\Rudder\var\ncf\common\60_services' -Name *.cf -Recurse | % { Write-Host c:\Program Files\Rudder\var\ncf\common\60_services\$_ }\"", "useshell"), "\n", 10000);

"ncf_local_inputs_10" slist => splitstring(execresult("c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command \"ls -Path 'c:\Program Files\Rudder\var\ncf\local\10_ncf_internals' -Name *.cf -Recurse | % { Write-Host c:\Program Files\Rudder\var\ncf\local\10_ncf_internals\$_ }\"", "useshell"), "\n", 10000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add the -ErrorAction SilentlyContinue on each ls ?

@Kegeruneku
Copy link
Author

PR updated

@Kegeruneku Kegeruneku force-pushed the bug_6929/windows_is_unable_to_load_ncf_directories branch from db9745e to 4cbc574 Compare July 6, 2015 12:21
ncharles added a commit that referenced this pull request Jul 6, 2015
…_load_ncf_directories

Fixes #6929: Windows is unable to load ncf directories
@ncharles ncharles merged commit f538f66 into Normation:branches/rudder/2.11 Jul 6, 2015
This pull request was closed.
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.

2 participants