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:
parent
50c3bef3ea
commit
97f7b99c70
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user