X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/741593ee2bf203c9261f604d094e3d8e621698a8..08cf52e21395d633afe7de03f255aaa0941bac1d:/cookbooks/postgresql/resources/tablespace.rb diff --git a/cookbooks/postgresql/resources/tablespace.rb b/cookbooks/postgresql/resources/tablespace.rb index 82e901228..69e0ce2b0 100644 --- a/cookbooks/postgresql/resources/tablespace.rb +++ b/cookbooks/postgresql/resources/tablespace.rb @@ -21,7 +21,7 @@ default_action :create property :tablespace, :kind_of => String, :name_property => true property :cluster, :kind_of => String, :required => true -property :location, :kind_of => String, :required => true +property :location, :kind_of => String, :required => [:create] action :create do unless cluster.tablespaces.include?(new_resource.tablespace)