X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..b99f7144a5d89e9b6405dfeeee7e243318e51eee:/cookbooks/postgresql/resources/tablespace.rb diff --git a/cookbooks/postgresql/resources/tablespace.rb b/cookbooks/postgresql/resources/tablespace.rb index 0fa05cafc..69e0ce2b0 100644 --- a/cookbooks/postgresql/resources/tablespace.rb +++ b/cookbooks/postgresql/resources/tablespace.rb @@ -19,9 +19,9 @@ default_action :create -property :tablespace, :kind_of => String, :name_attribute => true +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)