Skip to content

Add mof debugging info #427

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

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Conversation

codykonior
Copy link
Contributor

@codykonior codykonior commented Jul 17, 2024

I'm sometimes getting mof warnings, and the existing warning is too vague. By adding the file and the line information, it helps a lot (when not using -Verbose).

But one warning can't be avoided, and it's using the ServerPermission class which is in the SqlServerDsc module. These look like:

WARNING: [10:04:51 PM] Path [C:\Git\OftenOn\oftenon\MOF\DAC1N1.mof] Line [instance of ServerPermission as
$ServerPermission2ref]
WARNING: [10:04:51 PM] Cannot resolve MOF module name and/or version of the instance defined at line 1038.
WARNING: [10:04:51 PM] Path [C:\Git\OftenOn\oftenon\MOF\DAC1N1.mof] Line [instance of ServerPermission as
$ServerPermission3ref]
WARNING: [10:04:51 PM] Cannot resolve MOF module name and/or version of the instance defined at line 1046.
WARNING: [10:04:51 PM] Path [C:\Git\OftenOn\oftenon\MOF\DAC1N1.mof] Line [instance of SqlPermission as
$SqlPermission1ref]

(The last one is just caused by the other warnings).

I could not find any way around this except adding the exclusion.

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.

1 participant