From 72a55558609fb85f23befafc87d7a9648504af5d Mon Sep 17 00:00:00 2001 From: William Lam Date: Fri, 15 Mar 2019 10:46:43 -0700 Subject: [PATCH] Fixing logic for SRC/DST Infra Group --- Modules/VMware.VMC.NSXT/VMware.VMC.NSXT.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/VMware.VMC.NSXT/VMware.VMC.NSXT.psm1 b/Modules/VMware.VMC.NSXT/VMware.VMC.NSXT.psm1 index de52816..eb54158 100644 --- a/Modules/VMware.VMC.NSXT/VMware.VMC.NSXT.psm1 +++ b/Modules/VMware.VMC.NSXT/VMware.VMC.NSXT.psm1 @@ -489,7 +489,7 @@ Function New-NSXTFirewall { } } - if(! $DestinationInfraGroup) { + if($DestinationInfraGroup) { foreach ($group in $DestinationInfraGroup) { $tmp = (Get-NSXTInfraGroup -Name $group).Path $destinationGroups+= $tmp @@ -506,7 +506,7 @@ Function New-NSXTFirewall { } } - if(! $SourceInfraGroup) { + if($SourceInfraGroup) { foreach ($group in $SourceInfraGroup) { $tmp = (Get-NSXTInfraGroup -Name $group).Path $sourceGroups+= $tmp