summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-05 10:48:27 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-07-05 10:48:27 -0500
commit999d4832fda535b5224b9b21004e4c734387d1fa (patch)
tree97fabab6ec7e80fc0d3434ba40b0a6d358eaf710 /scripts
parentb79e099c6ad85d4a1b10707aa3adb8a20c15f72c (diff)
downloadvyatta-op-999d4832fda535b5224b9b21004e4c734387d1fa.tar.gz
vyatta-op-999d4832fda535b5224b9b21004e4c734387d1fa.zip
Bugfix 7277: Make clone system config consistent with the other image tools
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-image-tools.pl6
1 files changed, 3 insertions, 3 deletions
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;