diff --git a/resources/group.rb b/resources/group.rb index 32fca08..9b16743 100644 --- a/resources/group.rb +++ b/resources/group.rb @@ -22,4 +22,4 @@ default_action :create attribute :name, :kind_of => String, :name_attribute => true attribute :members, :kind_of => Array -attribute :meta, :kind_of => Hash +attribute :meta, :kind_of => Hash, :default => {} diff --git a/resources/primitive.rb b/resources/primitive.rb index acbc605..2abe43e 100644 --- a/resources/primitive.rb +++ b/resources/primitive.rb @@ -23,6 +23,6 @@ default_action :create attribute :name, :kind_of => String, :name_attribute => true attribute :agent, :kind_of => String -attribute :params, :default => Hash -attribute :meta, :kind_of => Hash -attribute :op, :kind_of => Hash +attribute :params, :default => Hash, :default => {} +attribute :meta, :kind_of => Hash, :default => {} +attribute :op, :kind_of => Hash, :default => {}