Skip to content

Commit 9f34523

Browse files
committed
Update changelog for version 0.6.9 and fix cluster replication diagram generation issue
1 parent 26140d3 commit 9f34523

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Diagrammer.Core v0.2.30
1616
- NetApp.Ontap v9.17.1.2509
1717

18+
### Fixed
19+
20+
- Fix issue where cluster replication diagram generation fails if no replication relationships are found.
21+
1822
## [0.6.8] - 2025-08-18
1923

2024
### Added

Src/Private/Get-AbrOntapClusterReplicationDiagram.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapClusterReplicationDiagram {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.6.8
8+
Version: 0.6.9
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -199,7 +199,7 @@ function Get-AbrOntapClusterReplicationDiagram {
199199
$Num++
200200
}
201201

202-
if ($ClusterReplicaInfo) {
202+
if ($ClusterReplicaInfo -and $NodeReplicaSum) {
203203
try {
204204
$ClusterReplicaNodeObj = Add-DiaHTMLNodeTable -ImagesObj $Images -inputObject $NodeReplicaSum -Align "Center" -iconType "Ontap_Node" -columnSize $NodeSumColumnSize -IconDebug $IconDebug -MultiIcon -AditionalInfo $NodeAdditionalInfo -Subgraph -SubgraphIconType "Ontap_Node_Icon" -SubgraphLabel $ClusterReplicaInfo.ClusterName -SubgraphLabelPos "top" -SubgraphTableStyle "dashed,rounded" -TableBorderColor "#71797E" -TableBorder "1" -SubgraphLabelFontsize 22 -fontSize 18
205205
} catch {
@@ -238,9 +238,11 @@ function Get-AbrOntapClusterReplicationDiagram {
238238

239239
$PeerVserverPeerSubGraphObj = Add-DiaHTMLSubGraph -ImagesObj $Images -TableArray $PeerVserverPeerObj -Align 'Center' -IconDebug $IconDebug -Label "Peer Storage VMs" -LabelPos 'top' -TableStyle "dashed,rounded" -TableBorderColor $Edgecolor -TableBorder "1" -columnSize $PeerVserverPeerObjColumnSize -fontSize 18 -IconType "Ontap_SVM_Icon"
240240

241-
if ($PeerVserverPeerSubGraphObj) {
241+
if ($PeerVserverPeerSubGraphObj -and $RemoteClusterName) {
242242
Node "$($RemoteClusterName)PeerVservers" @{Label = $PeerVserverPeerSubGraphObj; shape = 'plain'; fillColor = 'transparent'; fontsize = 14 }
243243
Edge -From $RemoteClusterName -To "$($RemoteClusterName)PeerVservers" @{minlen = 2; color = '#71797E'; style = 'filled'; arrowhead = 'box'; arrowtail = 'box' }
244+
} else {
245+
Write-PScriboMessage -IsWarning "Unable to create Peer Vserver Node. No Peer Vserver Object found."
244246
}
245247
} catch {
246248
Write-PScriboMessage -IsWarning $_.Exception.Message

0 commit comments

Comments
 (0)