-
Notifications
You must be signed in to change notification settings - Fork 54
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
MSFT_xCluster - Common helper module not importing properly #214
Comments
Manifest file needs to be updated to include the root module and export of functions so PS properly imports the psm1 file. Local testing and the contents of the @{
# Version number of this module.
ModuleVersion = '1.0'
# ID used to uniquely identify this module
GUID = 'b8e5084a-07a8-4135-8a26-00614e56ba71'
RootModule = 'CommonResourceHelper.psm1'
# Author of this module
Author = 'DSC Community'
# Company or vendor of this module
CompanyName = 'DSC Community'
# Copyright statement for this module
Copyright = 'Copyright the DSC Community contributors. All rights reserved.'
# Description of the functionality provided by this module
Description = 'Functions used by the DSC resources in SqlServerDsc.'
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = @('New-InvalidArgumentException',
'New-InvalidOperationException',
'New-ObjectNotFoundException',
'New-InvalidResultException',
'Get-LocalizedData')
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
# Variables to export from this module
VariablesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @()
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{
PSData = @{
} # End of PSData hashtable
} # End of PrivateData hashtable
}
|
Additional item, the MSFT_xCluster.psm1 file will need to directly import the psd1 file:
Just using the folder path does not work. |
Changes in folder layout and import process for the helper module no longer works. Testing a configuration that is using xCluster resource ends with this failure:
Seems to be tied down to the import of the
CommonResourceHelper
is not happening properly. This is on version 1.14.0 of the xFailoverCluster module.The text was updated successfully, but these errors were encountered: