summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-11-05 02:23:40 +0100
committerDaniil Baturin <daniil@baturin.org>2018-11-05 02:23:40 +0100
commitff03e0c9478740822fc7b6b452072e7a29f7e904 (patch)
treee7cd88ba16ff65a8b42ab14a0739531af1ac77ea /lib
parenta90bb0f86b713fb817c6c8e7d7adf02aece19113 (diff)
downloadvyatta-cluster-ff03e0c9478740822fc7b6b452072e7a29f7e904.tar.gz
vyatta-cluster-ff03e0c9478740822fc7b6b452072e7a29f7e904.zip
T960: join addresses with a backslash and newline to avoid hitting the line length limit.
Diffstat (limited to 'lib')
-rw-r--r--lib/Vyatta/Cluster/Config.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Vyatta/Cluster/Config.pm b/lib/Vyatta/Cluster/Config.pm
index 2c005f2..1ca1760 100644
--- a/lib/Vyatta/Cluster/Config.pm
+++ b/lib/Vyatta/Cluster/Config.pm
@@ -356,9 +356,9 @@ sub haresources {
# this forces all ip addresses to be before all services, which may not
# be the desirable behavior in all cases.
- my $ip_str = join " ", @ip_addresses;
- my $serv_str = join " ", @init_services;
- my $services = join " ", ($ip_str, $serv_str);
+ my $ip_str = join "\\\n ", @ip_addresses;
+ my $serv_str = join "\\\n ", @init_services;
+ my $services = join "\\\n ", ($ip_str, $serv_str);
return (undef, "cluster primary system not defined") if (!defined($primary));
return (undef, "cluster service(s) not defined") if ($services eq "");