Author: fapeeler
Date: Tue Sep  7 15:15:25 2010
New Revision: 993391

URL: http://svn.apache.org/viewvc?rev=993391&view=rev
Log:
removed check for ls -1 of datastore contents - if datastore is empty it 
returns 0 and undefined value causing reservations to fail

Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm

Modified: 
incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm?rev=993391&r1=993390&r2=993391&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm 
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm 
Tue Sep  7 15:15:25 2010
@@ -257,13 +257,6 @@ sub load {
                        notify($ERRORS{'OK'}, 0, "listing datestore 
$datastorepath ");
                        undef @sshcmd;
                        @sshcmd = run_ssh_command($hostnode, 
$management_node_keys, "ls -1 $datastorepath", "root");
-                       if (!defined(@{$sshcmd[1]})) {
-                               notify($ERRORS{'CRITICAL'}, 0, "failed to list 
data store contents $datastorepath on vm host");
-                               insertloadlog($reservation_id, 
$vmclient_computerid, "failed", "failed to list data store contents 
$datastorepath on vm host");
-                               close(TMPLOCK);
-                               unlink($tmplockfile);
-                               return 0;
-                       }
                        notify($ERRORS{'OK'}, 0, "data store contents 
$datastorepath on vm host:\...@{ $sshcmd[1] }");
                        foreach my $l (@{$sshcmd[1]}) {
                                if ($l =~ /denied|No such/) {


Reply via email to