Skip to content

Commit 00c4eac

Browse files
committed
(PUP-12063) Fix rendering of atime & ctime
Just pass a string instead of code to the `desc` method so that it can be rendered correctly by puppet-strings.
1 parent 5611201 commit 00c4eac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/puppet/type/file/ctime.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
module Puppet
44
Puppet::Type.type(:file).newproperty(:ctime) do
5-
desc %q(A read-only state to check the file ctime. On most modern \*nix-like
5+
desc "A read-only state to check the file ctime. On most modern \*nix-like
66
systems, this is the time of the most recent change to the owner, group,
7-
permissions, or content of the file.)
7+
permissions, or content of the file."
88

99
def retrieve
1010
current_value = :absent

lib/puppet/type/file/mtime.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
module Puppet
44
Puppet::Type.type(:file).newproperty(:mtime) do
5-
desc %q(A read-only state to check the file mtime. On \*nix-like systems, this
6-
is the time of the most recent change to the content of the file.)
5+
desc "A read-only state to check the file mtime. On \*nix-like systems, this
6+
is the time of the most recent change to the content of the file."
77

88
def retrieve
99
current_value = :absent

0 commit comments

Comments
 (0)