DungKHoang / Import-Export-OneView-Resources

5 stars 2 forks source link

Fail to export bootTarget and targetLun values #6

Open aricbernard opened 3 years ago

aricbernard commented 3 years ago

First, the incorrect object name is being used when attempting to export bootTarget and targetLun. You are using $boot (i.e. $boot.arrayTarget and $boot.lun); however, the proper object is $bootSettings.

Second, the properties you are attempting to use do not exist. Instead arrayTarget and lun, the property is 'targets'. Targets is an array of System.Object (?) which in my case contains two object:

bootVolumeSource : UserDefined priority : Primary targets : {@{arrayWwpn=50060E8007DF5223; lun=0}, @{arrayWwpn=50060E8007DF5252; lun=0}} bootVlanId :

aricbernard commented 3 years ago

Check the code I sent you in email...