mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 11:15:46 +00:00
PSSA: Fix PSUseDeclaredVarsMoreThanAssignments
The variable 'I_B' is assigned but never used The variable 'I_A' is assigned but never used
This commit is contained in:
parent
0217808bfc
commit
1ca534b3a4
1 changed files with 3 additions and 3 deletions
|
|
@ -54,8 +54,8 @@ function Add-NetboxDCIMInterfaceConnection {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verify if both Interfaces exist
|
# Verify if both Interfaces exist
|
||||||
$I_A = Get-NetboxDCIMInterface -Id $Interface_A -ErrorAction Stop
|
Get-NetboxDCIMInterface -Id $Interface_A -ErrorAction Stop | Out-null
|
||||||
$I_B = Get-NetboxDCIMInterface -Id $Interface_B -ErrorAction Stop
|
Get-NetboxDCIMInterface -Id $Interface_B -ErrorAction Stop | Out-null
|
||||||
|
|
||||||
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'interface-connections'))
|
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'interface-connections'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue