[padb] r416 committed - Be more careful reading hte host_list for a job, if it's not...

padb at googlecode.com padb at googlecode.com
Tue Nov 9 16:10:36 GMT 2010


Revision: 416
Author: apittman at gmail.com
Date: Tue Nov  9 08:09:47 2010
Log: Be more careful reading hte host_list for a job, if it's not
defined then don't try and copy it.

http://code.google.com/p/padb/source/detail?r=416

Modified:
  /trunk/src/padb

=======================================
--- /trunk/src/padb	Mon Nov  8 10:31:23 2010
+++ /trunk/src/padb	Tue Nov  9 08:09:47 2010
@@ -3748,7 +3748,10 @@

      my @modes = split $COMMA, $mode_list;

-    my @hosts = @{ $pcmd{host_list} };
+    my @hosts;
+    if ( defined $pcmd{host_list} ) {
+        @hosts = @{ $pcmd{host_list} };
+    }

      my $have_pdsh = find_exe('pdsh');

@@ -3771,6 +3774,7 @@
              }
          } elsif ( $mode eq 'pdsh' ) {
              next unless ($have_pdsh);
+            next if ( @hosts == 0 );

              $pcmd{require_inner_callback} = 1;
              my $hlist = join q{,}, @hosts;




More information about the padb-devel mailing list