lib/fog/qingcloud/models/compute/address.rb in ns-fog-1.22.4 vs lib/fog/qingcloud/models/compute/address.rb in ns-fog-1.22.6
- old
+ new
@@ -29,9 +29,12 @@
self.id = public_ip
self.reload
end
service.release_address(id)
true
+ rescue Fog::QingCloud::Errors::PermissionDenied => e
+ raise e unless e.message =~ /has already been deleted/i
+ true
end
def server=(new_server)
if new_server
associate(new_server)