aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vespaclient/src/perl/lib/Yahoo/Vespa/Bin/SetNodeState.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/vespaclient/src/perl/lib/Yahoo/Vespa/Bin/SetNodeState.pm b/vespaclient/src/perl/lib/Yahoo/Vespa/Bin/SetNodeState.pm
index 5461c50ee30..3767640b9dd 100644
--- a/vespaclient/src/perl/lib/Yahoo/Vespa/Bin/SetNodeState.pm
+++ b/vespaclient/src/perl/lib/Yahoo/Vespa/Bin/SetNodeState.pm
@@ -85,14 +85,14 @@ sub maybeRequireClusterSelection
my %clusters;
VespaModel::visitServices(sub {
my ($info) = @_;
- if ($$info{'type'} =~ /^(?:distributor|storage|storagenode)$/ ) {
- $clusters{$$info{'cluster'}} = 1;
- }
+ if ($$info{'type'} =~ /^(?:distributor|storage|storagenode)$/ ) {
+ $clusters{$$info{'cluster'}} = 1;
+ }
});
my $clusterCount = scalar keys %clusters;
if ($clusterCount > 1) {
printWarning "More than one cluster is present but no cluster is selected\n";
- exitApplication(1);
+ exitApplication(1);
}
}