lib/fog/qingcloud/models/compute/vxnet.rb in ns-fog-1.22.4 vs lib/fog/qingcloud/models/compute/vxnet.rb in ns-fog-1.22.6
- old
+ new
@@ -26,9 +26,12 @@
def destroy
requires :id
service.delete_vxnets(id)
true
+ rescue Fog::QingCloud::Errors::PermissionDenied => e
+ raise e unless e.message =~ /has already been deleted/i
+ true
end
# Create a vxnet
#