From 3830ae5ada08d28ede6dde515c07e8009b99932e Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 19 Dec 2005 15:04:25 +0000 Subject: [PATCH] 2005-12-19 15:04:25 by steve BUGFIX: Memory is strippedof its size. --- xen-duplicate-image | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xen-duplicate-image b/xen-duplicate-image index 111374d..ef7a262 100755 --- a/xen-duplicate-image +++ b/xen-duplicate-image @@ -100,7 +100,7 @@ Specify the virtual instance that we should copy. -- http://www.steve.org.uk/ - $Id: xen-duplicate-image,v 1.2 2005-12-19 14:54:40 steve Exp $ + $Id: xen-duplicate-image,v 1.3 2005-12-19 15:04:25 steve Exp $ =cut @@ -488,6 +488,12 @@ EOF } + # Strip trailing Mb from the memory size. + if ( $CONFIG{'memory'} =~ /^(\d+)Mb*$/i ) + { + $CONFIG{'memory'} = $1; + } + # # Only one of DHCP / IP is required. #