Skip to content

Commit

Permalink
hide invalid links for cluster cmp_base profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxzhu committed Mar 8, 2024
1 parent 7fac02c commit 1f321bc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ Vue.component('aws-user-data', {
acc[entry.name] = entry.value;
return acc;
}, {});

// hide link for cmp_base cluster profiles
if (userDataObj['pinfo_cluster'] && userDataObj['pinfo_role'] === 'cmp_base') {
return ' ';
}
const hieraPaths = this.hierapaths.trim().split("\n").reduce(
(acc, line) => acc.set(line, [
...new Set(line.matchAll(/(?<=%{::)[a-z0-9_]+(?=})/gi).map(val => val[0]))
Expand Down

0 comments on commit 1f321bc

Please sign in to comment.