Blame SOURCES/bz1265527-sap_redhat_cluster_connector-hostnames-with-dash.patch

937446
diff -uNr a/sap_redhat_cluster_connector-6353d27/sap_redhat_cluster_connector b/sap_redhat_cluster_connector-6353d27/sap_redhat_cluster_connector
937446
--- a/sap_redhat_cluster_connector-6353d27/sap_redhat_cluster_connector	2013-07-18 21:17:48.000000000 +0200
937446
+++ b/sap_redhat_cluster_connector-6353d27/sap_redhat_cluster_connector	2016-02-29 11:04:48.714352114 +0100
937446
@@ -251,13 +251,13 @@
937446
 	open CRMOUT, "$cmd_cibadmin --local -Q --xpath '//primitive[\@type=\"$sra\"]' --node-path 2>/dev/null |" || die "could not open cibadmin output";
937446
 	while (<CRMOUT>) {
937446
 		my $line = $_;
937446
-		if ($line =~ /primitive..id='([a-zA-Z0-9_]+)'/) {
937446
+		if ($line =~ /primitive..id='([a-zA-Z0-9_-]+)'/) {
937446
 			($fname) = ($1);
937446
 		} else {
937446
 			next;
937446
 		}
937446
 
937446
-		if ( $line =~ /[group|master|clone]..id='([a-zA-Z0-9_]+)'/) {
937446
+		if ( $line =~ /[group|master|clone]..id='([a-zA-Z0-9_-]+)'/) {
937446
 			($fgname) = ($1);
937446
 		}
937446
 
937446
@@ -265,7 +265,7 @@
937446
 			open RESOURCE1_OUT, "$cmd_cibadmin -Q --xpath \"//primitive[\@id='$fname']//nvpair[\@name='$sparam']\"  2>/dev/null |" || die "could not open cibadmin output";
937446
 			while (<RESOURCE1_OUT>) {
937446
 				my $result = $_;
937446
-				if ($result =~ /value="([a-zA-Z0-9_]+)"/) {
937446
+				if ($result =~ /value="([a-zA-Z0-9_-]+)"/) {
937446
 					my $finstance=$1;
937446
 					if ( $1 =~ /^${sid}_[a-zA-Z0-9]+${ino}_[a-zA-Z0-9_-]+$/ ) {
937446
 						$foundRes=1;
937446
@@ -279,7 +279,7 @@
937446
 			open RESOURCE2_OUT, "$cmd_cibadmin -Q --xpath \"//primitive[\@id='$fname']//nvpair[\@name='$sparam2']\"  2>/dev/null |" || die "could not open cibadmin output";
937446
 			while (<RESOURCE2_OUT>) {
937446
 				my $result = $_;
937446
-				if ($result =~ /value="([a-zA-Z0-9_]+)"/) {
937446
+				if ($result =~ /value="([a-zA-Z0-9_-]+)"/) {
937446
 					my $finstance=$1;
937446
 					if ( $1 =~ /^${sid}_[a-zA-Z0-9]+${ino}_[a-zA-Z0-9_-]+$/ ) {
937446
 						$foundRes=1;