1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

M #-: Rename img_imported to img_not_imported

This commit is contained in:
Tino Vazquez 2020-05-14 16:59:14 +02:00
parent 50c3bef3ea
commit 97f7b99c70
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -40,7 +40,7 @@ $LOAD_PATH << File.dirname(__FILE__)
require 'vcenter_driver'
def img_imported?(imported)
def img_not_imported?(imported)
imported.nil? || imported.empty?
end
@ -61,7 +61,7 @@ check_valid img_src, 'img_src'
CDROM = '1'
begin
if img_imported?(imported)
if img_not_imported?(imported)
vi_client = VCenterDriver::VIClient.new_from_datastore(ds_id)
ds = VCenterDriver::Datastore.new_from_ref(ds_ref, vi_client)