1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

L #-: Lint for vCenter driver

This commit is contained in:
Tino Vazquez 2021-05-26 18:49:43 +02:00
parent 86f174d469
commit 218ef63c06
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -2418,7 +2418,7 @@ end
# Adding a new disk in newer vSphere versions
# automatically cleans all system snapshots
# https://github.com/OpenNebula/one/issues/5409
if snapshots? or one_snapshots?
if snapshots? || one_snapshots?
error_message = 'Existing sytem snapshots, cannot change disks. '
error_message << 'Please remove all snapshots and try again.'
raise error_message
@ -2605,10 +2605,10 @@ end
def detach_disk(disk)
return unless disk.exists?
if snapshots? or one_snapshots?
error_message = 'Existing sytem snapshots, cannot change disks. '
error_message << 'Please remove all snapshots and try again.'
raise error_message
if snapshots? || one_snapshots?
error_message = 'Existing sytem snapshots, cannot change disks'
error_message << '. Please remove all snapshots and try again.'
raise error_message
end
spec_hash = {}