From 97114142eda31cd87950c015dab324f9cb2481fd Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 3 May 2017 16:05:08 +0200 Subject: [PATCH] Fixed bug: Failed save actions for import resources should throw an exception instead of just returning false. --- lib/import/base_resource.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/import/base_resource.rb b/lib/import/base_resource.rb index 08fc7c245..0e3d12c46 100644 --- a/lib/import/base_resource.rb +++ b/lib/import/base_resource.rb @@ -100,7 +100,7 @@ module Import return true if !attributes_changed? return true if @dry_run - @resource.save + @resource.save! true end @@ -151,7 +151,7 @@ module Import def create(resource, *_args) @resource = import_class.new(resource) return if @dry_run - @resource.save + @resource.save! external_sync_create( local: @resource, remote: resource,