From: Walter Huf Date: Fri, 14 Mar 2014 15:30:24 +0000 (-0500) Subject: Allows file modes to be specified as strings X-Git-Tag: v0.8.0~52^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=83785a37c82f9270d20b8b956b67083bfb02a13f;p=ceph-cookbooks.git Allows file modes to be specified as strings --- diff --git a/resources/client.rb b/resources/client.rb index 023e6c2..2428b34 100644 --- a/resources/client.rb +++ b/resources/client.rb @@ -19,6 +19,6 @@ attribute :filename, :kind_of => String # key file access creds attribute :owner, :kind_of => String, :default => 'root' attribute :group, :kind_of => String, :default => 'root' -attribute :mode, :kind_of => Integer, :default => 00640 +attribute :mode, :kind_of => [Integer, String], :default => '00640' attr_accessor :key, :caps_match