Skip to content

Commit e628e78

Browse files
authored
Merge pull request #27 from jay7x/hide_clusters_call
Disable lima::clusters call logging
2 parents c328c06 + bf58c1f commit e628e78

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

plans/cluster/create.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
Optional[Hash] $clusters = undef,
1111
TargetSpec $target = 'localhost',
1212
) {
13-
$cluster = run_plan('lima::clusters', name => $name, clusters => $clusters)
13+
$cluster = without_default_logging() || {
14+
run_plan('lima::clusters', name => $name, clusters => $clusters)
15+
}
1416
$tgt = get_target($target)
1517

1618
$cluster_config = $cluster['nodes'].reduce({}) |$memo, $node| {

plans/cluster/delete.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
Optional[Hash] $clusters = undef,
1414
TargetSpec $target = 'localhost',
1515
) {
16-
$cluster = run_plan('lima::clusters', name => $name, clusters => $clusters)
16+
$cluster = without_default_logging() || {
17+
run_plan('lima::clusters', name => $name, clusters => $clusters)
18+
}
1719

1820
$defined_nodes = $cluster['nodes'].map |$node| {
1921
$node ? {

plans/cluster/start.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
Optional[Hash] $clusters = undef,
1111
TargetSpec $target = 'localhost',
1212
) {
13-
$cluster = run_plan('lima::clusters', name => $name, clusters => $clusters)
13+
$cluster = without_default_logging() || {
14+
run_plan('lima::clusters', name => $name, clusters => $clusters)
15+
}
1416
$tgt = get_target($target)
1517

1618
$defined_nodes = $cluster['nodes'].map |$node| {

plans/cluster/stop.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
Optional[Hash] $clusters = undef,
1414
TargetSpec $target = 'localhost',
1515
) {
16-
$cluster = run_plan('lima::clusters', name => $name, clusters => $clusters)
16+
$cluster = without_default_logging() || {
17+
run_plan('lima::clusters', name => $name, clusters => $clusters)
18+
}
1719

1820
$defined_nodes = $cluster['nodes'].map |$node| {
1921
$node ? {

0 commit comments

Comments
 (0)