vcl-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fapee...@apache.org
Subject svn commit: r1207982 - /incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm
Date Tue, 29 Nov 2011 17:24:41 GMT
Author: fapeeler
Date: Tue Nov 29 17:24:41 2011
New Revision: 1207982

URL: http://svn.apache.org/viewvc?rev=1207982&view=rev
Log:
simple fix


Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm?rev=1207982&r1=1207981&r2=1207982&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm Tue Nov 29 17:24:41 2011
@@ -654,7 +654,8 @@ sub _initialize : Init {
 		}
 		
 		elsif ($computer_id) {
-			if ($imagerevision_id = $self->get_computer_imagerevision_id()) {
+			$imagerevision_id = $self->get_computer_imagerevision_id();
+			if (defined($imagerevision_id)) {
 				notify($ERRORS{'DEBUG'}, 0, "computer ID argument was specified ($computer_id) but image
and imagerevision ID arguments were not, DataStructure object will contain image information
for the computer's current imagerevision ID: $imagerevision_id");
 			}
 			else {
@@ -690,6 +691,7 @@ sub _initialize : Init {
 			return;
 		}
 	}
+	
 
 	return 1;
 }



Mime
View raw message