From 28e69392682b0b4bbd86886cba7d704502abf306 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 24 Mar 2015 15:48:20 -0400 Subject: [PATCH] update the error message on xpod2man to better reflect what is going on, looking for man5 pages, instead of claiming error running the command. --- xCAT-OpenStack-baremetal/xpod2man | 2 +- xCAT-SoftLayer/xpod2man | 2 +- xCAT-client/xpod2man | 2 +- xCAT-confluent/xpod2man | 2 +- xCAT-vlan/xpod2man | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-OpenStack-baremetal/xpod2man b/xCAT-OpenStack-baremetal/xpod2man index 5401b0b26..bb7d7aa39 100755 --- a/xCAT-OpenStack-baremetal/xpod2man +++ b/xCAT-OpenStack-baremetal/xpod2man @@ -71,7 +71,7 @@ sub createDummyPods { my $cmd = "grep -r -E 'L<.+\\([57]\\)\\|.+\\.[57]>' " . $poddir; #print "Running cmd: ", $cmd, "\n"; my @lines = `$cmd`; - if ($?) { print "Error running: $cmd\n"; print join('', @lines); } + if ($?) { print "Did not find any section 5 man page, creating dummy pods...\n"; print join('', @lines); } #my @lines; #system($cmd); my @dummyPods; diff --git a/xCAT-SoftLayer/xpod2man b/xCAT-SoftLayer/xpod2man index c885505bd..02c930fbc 100755 --- a/xCAT-SoftLayer/xpod2man +++ b/xCAT-SoftLayer/xpod2man @@ -71,7 +71,7 @@ sub createDummyPods { my $cmd = "grep -r -E 'L<.+\\([57]\\)\\|.+\\.[57]>' " . $poddir; #print "Running cmd: ", $cmd, "\n"; my @lines = `$cmd`; - if ($?) { print "Error running: $cmd\n"; print join('', @lines); } + if ($?) { print "Did not find any section 5 man page, creating dummy pods...\n"; print join('', @lines); } #my @lines; #system($cmd); my @dummyPods; diff --git a/xCAT-client/xpod2man b/xCAT-client/xpod2man index 6fb39f20c..1c883146e 100755 --- a/xCAT-client/xpod2man +++ b/xCAT-client/xpod2man @@ -72,7 +72,7 @@ sub createDummyPods { my $cmd = "grep -r -E 'L<.+\\([57]\\)\\|.+\\.[57]>' " . $poddir; #print "Running cmd: ", $cmd, "\n"; my @lines = `$cmd`; - if ($?) { print "Error running: $cmd\n"; print join('', @lines); } + if ($?) { print "Did not find any section 5 man page, creating dummy pods...\n"; print join('', @lines); } #my @lines; #system($cmd); my @dummyPods; diff --git a/xCAT-confluent/xpod2man b/xCAT-confluent/xpod2man index c885505bd..02c930fbc 100755 --- a/xCAT-confluent/xpod2man +++ b/xCAT-confluent/xpod2man @@ -71,7 +71,7 @@ sub createDummyPods { my $cmd = "grep -r -E 'L<.+\\([57]\\)\\|.+\\.[57]>' " . $poddir; #print "Running cmd: ", $cmd, "\n"; my @lines = `$cmd`; - if ($?) { print "Error running: $cmd\n"; print join('', @lines); } + if ($?) { print "Did not find any section 5 man page, creating dummy pods...\n"; print join('', @lines); } #my @lines; #system($cmd); my @dummyPods; diff --git a/xCAT-vlan/xpod2man b/xCAT-vlan/xpod2man index fc4646096..851a1853f 100755 --- a/xCAT-vlan/xpod2man +++ b/xCAT-vlan/xpod2man @@ -71,7 +71,7 @@ sub createDummyPods { my $cmd = "grep -r -E 'L<.+\\([57]\\)\\|.+\\.[57]>' " . $poddir; #print "Running cmd: ", $cmd, "\n"; my @lines = `$cmd`; - if ($?) { print "Error running: $cmd\n"; print join('', @lines); } + if ($?) { print "Did not find any section 5 man page, creating dummy pods...\n"; print join('', @lines); } #my @lines; #system($cmd); my @dummyPods;