From 999d4832fda535b5224b9b21004e4c734387d1fa Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 5 Jul 2011 10:48:27 -0500 Subject: Bugfix 7277: Make clone system config consistent with the other image tools --- scripts/vyatta-image-tools.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl index 2973c3f..52c3ee5 100755 --- a/scripts/vyatta-image-tools.pl +++ b/scripts/vyatta-image-tools.pl @@ -24,7 +24,7 @@ if (@update){ update(@update); } if (defined($updateone)){ - update($updateone, "running://"); + update($updateone, "running"); } if (@copy){ copy(@copy); @@ -169,12 +169,12 @@ sub copy { sub update { my ($to, $from) = @_; my ($t_topdir, $f_topdir); - ($f_topdir, $from) = conv_file($from); + ($f_topdir, $from) = conv_file("$from://"); if ($f_topdir eq 'url'){ print "Cannot clone from a url\n"; exit 1; } - ($t_topdir, $to) = conv_file($to); + ($t_topdir, $to) = conv_file("$to://"); if ($t_topdir eq 'running'){ print "Cannot clone to running\n"; exit 1; -- cgit v1.2.3