You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2011/06/30 20:21:28 UTC

svn commit: r1141649 - /incubator/vcl/trunk/managementnode/lib/VCL/utils.pm

Author: arkurth
Date: Thu Jun 30 18:21:27 2011
New Revision: 1141649

URL: http://svn.apache.org/viewvc?rev=1141649&view=rev
Log:
VCL-428
Updated get_vmhost_info to set default values for vmprofile username, password, virtualdiskpath, and vmpath.

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

Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=1141649&r1=1141648&r2=1141649&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Thu Jun 30 18:21:27 2011
@@ -5358,6 +5358,12 @@ EOF
 		notify($ERRORS{'WARNING'}, 0, "unable to retrieve vmprofile image info, image ID: $vmprofile_image_id");
 	}
 	
+	$vmhost_info->{vmprofile}{username} = '' if !$vmhost_info->{vmprofile}{username};
+	$vmhost_info->{vmprofile}{password} = '' if !$vmhost_info->{vmprofile}{password};
+	
+	$vmhost_info->{vmprofile}{vmpath} = $vmhost_info->{vmprofile}{datastorepath} if !$vmhost_info->{vmprofile}{vmpath};
+	$vmhost_info->{vmprofile}{virtualdiskpath} = $vmhost_info->{vmprofile}{vmpath} if !$vmhost_info->{vmprofile}{virtualdiskpath};
+	
 	return $vmhost_info;
 }