Skip to content

Commit

Permalink
Remove redundant destroy_if_failed
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed Feb 8, 2017
1 parent 232d2ad commit 844d592
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions app/models/manageiq/providers/openstack/cloud_manager/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ def delete_floating_ips(floating_ips)
end
end

def destroy_if_failed
if raw_power_state.downcase.to_sym == :error
provider_object.destroy
destroy
end
end

def provider_object(connection = nil)
connection ||= ext_management_system.connect
connection.servers.get(ems_ref)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class MiqAeServiceManageIQ_Providers_Openstack_CloudManager_Vm < MiqAeServiceVmC

expose :associate_floating_ip_from_network
expose :delete_floating_ips
expose :destroy_if_failed

def attach_volume(volume_id, device = nil, options = {})
sync_or_async_ems_operation(options[:sync], "attach_volume", [volume_id, device])
Expand Down

0 comments on commit 844d592

Please sign in to comment.