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 2014/05/19 15:17:53 UTC

svn commit: r1595888 - /vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm

Author: arkurth
Date: Mon May 19 13:17:52 2014
New Revision: 1595888

URL: http://svn.apache.org/r1595888
Log:
VCL-761
Updated Provisioning.pm::retrieve_image to add a directory named after the image name to the destination repository path. This causes images to be named consistently.

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

Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm?rev=1595888&r1=1595887&r2=1595888&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm Mon May 19 13:17:52 2014
@@ -321,6 +321,10 @@ sub retrieve_image {
 	}
 	else {
 		$image_repository_path_local = $self->data->get_vmhost_profile_repository_path(0);
+		
+		# Add the image name as an intermediate directory
+		$image_repository_path_local =~ s/[\/\s]+$//;
+		$image_repository_path_local .= "/$image_name";
 	}
 	
 	if (!$image_repository_path_local) {