Hi all
I've created the following viproperty to tell me if a datastore is 'local' or 'SAN' based. It 'seems' to be working however I thought I would get a second opinion from you guys
New-VIProperty -ObjectType Datastore -Name _LOCALorSAN -ValueFromExtensionProperty 'info.vmfs.local' -Force
When i call up a SAN datastore and ask to see its properties its shows up fine and reports that it is NOT local. However when I ask to see a 'local' datastore it still shows that it is TRUE (which is correct) but shows an error (see below).
Get-Datastore : 18/01/2014 17:18:45 | Get-Datastore | InvalidProperty(info.vmfs.local): |
At line:1 char:1
+ Get-Datastore *7641* | fl *
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo | : NotSpecified: (:) [Get-Datastore], InvalidProperty | |
+ FullyQualifiedErrorId : Client20_ExtensionDataHelper_GetExtensionDataByObjectContent_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetDatastore |
Have i done something wrong ?
Thanks in advance
Munster