VirtualEngine / Lability

Virtual Engine test lab deployment and configuration module
MIT License
282 stars 50 forks source link

Add mof debugging info #427

Open codykonior opened 1 month ago

codykonior commented 1 month ago

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.