updated code for clarity

This commit is contained in:
=
2017-08-30 15:29:02 -07:00
parent b8d0d10716
commit 98997718b8

View File

@@ -45,16 +45,6 @@ Function Get-CIVMData
$NewObj.Name = $CIVM.Name $NewObj.Name = $CIVM.Name
$NewObj.Status = $CIVM.Status $NewObj.Status = $CIVM.Status
# Do some logic here, if the VM name matches "tmpl" or "tpl", it's a template. Grab the vApp name and set "New Name"
If ($CIVM.Name -match "tmpl" -or $CIVM.Name -match "tpl")
{
$NewObj.NewName = $CIVM.VApp.Name
}
Else
{
$NewObj.NewName = $CIVM.Name
}
Write-Verbose "Recording Reservations" Write-Verbose "Recording Reservations"
$NewObj.Reservations = @{} $NewObj.Reservations = @{}
$NewObj.Reservations.CPU = @{} $NewObj.Reservations.CPU = @{}