Revision 39e7aaf2 src/flow/lib/models/role.rb

View differences:

src/flow/lib/models/role.rb
349 349
                rc = vm.terminate(true)
350 350

  
351 351
                if OpenNebula.is_error?(rc)
352
                    rc = vm.delete
352
                    if @@force_deletion
353
                        rc = vm.delete
354
                    end
353 355
                end
354 356

  
355 357
                if OpenNebula.is_error?(rc)
......
600 602
            @@default_shutdown = shutdown_action
601 603
        end
602 604

  
605
        def self.init_force_deletion(force_deletion)
606
            @@force_deletion = force_deletion
607
        end
608

  
603 609
        def self.init_default_vm_name_template(vm_name_template)
604 610
            @@vm_name_template = vm_name_template
605 611
        end

Also available in: Unified diff