diff options
author | Tor Egge <tegge@oath.com> | 2018-04-09 11:46:36 +0000 |
---|---|---|
committer | Tor Egge <tegge@oath.com> | 2018-04-09 11:46:36 +0000 |
commit | 704435b261f20644a6169c607f21ef29a3f43ba1 (patch) | |
tree | 193daf5c40c5a3d4ccac78b7b35f0e18ef23c41e /vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm | |
parent | f7f89419cc6e91045b520244e9cc128db647c04e (diff) |
Adjust vespa-set-node-state to require cluster argument if more than
one cluster is present in model.
Diffstat (limited to 'vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm')
-rw-r--r-- | vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm b/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm index d15fd4a75df..d23471c8910 100644 --- a/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm +++ b/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm @@ -127,6 +127,10 @@ sub validateCommandLineArguments { # (WantedState) return 1; } +sub hasClusterSelection { + return defined $CLUSTER; +} + ############## Utility functions - Not intended for external use ############# sub validType { # (ServiceType) -> Bool |