Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
remove dirty substring from openshift version (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
suomiy authored and mareklibra committed May 2, 2019
1 parent ef2f909 commit 247b999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectors/prometheus/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getOpenshiftVersion = openshiftClusterVersionResponse => {
// if cluster has more nodes, we take the version for the fist one
const firstCluster = Array.isArray(result) ? result[0] : result;
if (firstCluster) {
return get(firstCluster, 'metric.gitVersion');
return get(firstCluster, 'metric.gitVersion', '').replace(/-?dirty/, ''); // FIXME: demo only
}
return null;
};

0 comments on commit 247b999

Please sign in to comment.