Skip to content

Commit

Permalink
Merge pull request #397 from jaywcarman/fix_powervs_cloning_rescue
Browse files Browse the repository at this point in the history
Replace 'RestClient' rescues

(cherry picked from commit 62a1ef6)
  • Loading branch information
agrare committed Jun 30, 2022
1 parent aea32f3 commit 7ec9c6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def start_clone(clone_options)
response&.first&.pvm_instance_id
end
end
rescue RestClient::ExceptionWithResponse => e
rescue IbmCloudPower::ApiError => e
raise MiqException::MiqProvisionError, e.response.to_s
end
rescue RestClient::ExceptionWithResponse => e
rescue IbmCloudPower::ApiError => e
raise MiqException::MiqProvisionError, e.response.to_s
end

Expand Down

0 comments on commit 7ec9c6c

Please sign in to comment.