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:
parent
86f174d469
commit
218ef63c06
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user