Skip to content
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

Inventory on slots is wrong #2

Open
somersbd opened this issue Jan 9, 2021 · 1 comment
Open

Inventory on slots is wrong #2

somersbd opened this issue Jan 9, 2021 · 1 comment

Comments

@somersbd
Copy link

somersbd commented Jan 9, 2021

On the inventory of the Chassis the Slots used is always 0 while the slots available is always showing 8.
Using the latesest version of script and UCS Core 2.5.1.6 powershell module.

@pschapman
Copy link

Hi -

Found offending code on Line 692

$_.Model references $EquipmentPhysicalDef instead of the intended blade object.

$bladeHash.Width = [math]::floor((($EquipmentPhysicalDef | ? {$_.Dn -ilike "*$($_.Model)*"}).Width)/8)

Recommended Fix: Use already defined variable $bladeHash.Model

$bladeHash.Width = [math]::floor((($EquipmentPhysicalDef | ? {$_.Dn -ilike "*$($bladeHash.Model)*"}).Width)/8)

PSC

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

No branches or pull requests

2 participants