-
Notifications
You must be signed in to change notification settings - Fork 23
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
dsc-sqlserverdsc v 16.4.0-0-0 error #262
Comments
Correction, it's in SqlServerDsc.psm1. Maybe that file is just not imported? |
Seems this thing broke it: dsccommunity/SqlServerDsc#1826 |
Hey @Hvid, in this case the only own the wrapper. We currently use Puppet.Dsc to wrap the code on the PowerShell Gallery therefore we have no control over the actual code that we wrap. My suggestion would be to downgrade the module to v16.0.0-0-0 until this is fixed in the Powershell Gallery. When it is fixed in the Powershell Gallery if you request us to republish the module containing the fix from the Powershell Gallery we will have no issues doing this. |
Okay, but this works in powershell, without puppet. Is there any info i can pass on to the owners of the module to make it compatible? |
I'm having exactly the same issue, with dsc-sqlserverdsc v 16.4.0-0-4 and Puppet 8 |
So the break-fix for this was to put C:\ProgramData\PuppetLabs\puppet\cache\lib\puppet_x\sqlserverdsc\dsc_resources into the PsmodulesPath environment variable. I am not sure if this project is setup to include that particular path or not. |
transferring as fix will go into ruby-pwsh. |
Released in v1.0.1 of puppetlabs-pwshlib. |
I don't think the fix is working. I believe I am still getting the error:
The above breakfix seems to still be required for it to function |
I agree @rismoney I get the same error |
I updated to v16.4.0-0-0 from v16.0.0-0-0 and now i get these errors:
Error: dsc_sqlmemory: The term 'Import-SqlDscPreferredModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Error: dsc_sqlmemory: The term 'Import-SqlDscPreferredModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Error: /Stage[main]/Sqlhosting::Server/Dsc_sqlmemory[max_memory]: Could not evaluate: undefined method `[]' for nil:NilClass
Seems that function is not included in the module.
The text was updated successfully, but these errors were encountered: