Skip to content

Commit

Permalink
Modified brick path replace symbol for grafana dashboard reference
Browse files Browse the repository at this point in the history
bugzilla: 1668900
tendrl-bug-id: #1093

Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
  • Loading branch information
GowthamShanmugam committed Jan 24, 2019
1 parent 636b6d2 commit 5421682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/bricks/host-bricks/host-bricks.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
var brickName = brick.brickPath.split(":")[1],
hostName = brick.brickPath.split(":")[0].replace(/\./gi, "_");

brickName = brickName.replace(/\//gi, "|");
brickName = brickName.replace(/\//gi, ":");
utils.redirectToGrafana("bricks", { clusterId: vm.clusterName, hostName: hostName, brickName: brickName, volumeName: brick.volName });
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/bricks/volume-bricks/volume-bricks.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
var brickName = brick.brickPath.split(":")[1],
hostName = brick.fqdn.replace(/\./gi, "_");

brickName = brickName.replace(/\//gi, "|");
brickName = brickName.replace(/\//gi, ":");
utils.redirectToGrafana("bricks", { clusterId: vm.clusterName, hostName: hostName, brickName: brickName, volumeName: volumeStore.getVolumeObject(vm.volumeId).name });
}

Expand Down

0 comments on commit 5421682

Please sign in to comment.