From a55391ece70ef45dea8ac6fd44300bc4f6ee79cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tino=20V=C3=A1zquez?= Date: Tue, 29 Jun 2010 19:15:09 +0200 Subject: [PATCH] feature #200: Fix bug in copy control of oneimage --- src/cli/oneimage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/oneimage b/src/cli/oneimage index bcb59b6f9a..48170fb018 100755 --- a/src/cli/oneimage +++ b/src/cli/oneimage @@ -361,8 +361,8 @@ when "register", "create", "add" exit -1 end - # Perform the copy to the image repo - if template['TYPE'].to_i == 0 + # Perform the copy to the image repo if needed + if template['PATH'] if File.copy(template['PATH'], image['SOURCE']) result = image.enable else