mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 20:32:38 +09:00
Feature #4217: don't try to delete images from s3 that don't have a
source
This commit is contained in:
1 parent
e35e097469
commit
aecd441bce
1 file changed
+5
@@ -59,6 +59,11 @@ region = xpath(xml, 'MARKETPLACE/TEMPLATE/REGION')
|
||||
|
||||
name = File.basename(source)
|
||||
|
||||
if name.empty?
|
||||
STDERR.puts "Empty SOURCE."
|
||||
exit 1
|
||||
end
|
||||
|
||||
s3 = S3.new(
|
||||
:name => name,
|
||||
:bucket => bucket,
|
||||
|
||||
Reference in new issue
Block a user