The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #12365

2.7.10 puppet resource file only displays 3 digits for file mode

Added by Stefan Heijmans about 4 years ago. Updated about 4 years ago.

Status:AcceptedStart date:02/01/2012
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Affected Puppet version: Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


running puppet resource file on a file, shows a 3 digit file mode, should be 4. as mentioned in the style guide;

# rpm -q puppet

# puppet resource file /etc/hosts
/usr/lib/ruby/site_ruby/1.8/puppet/util/instrumentation/listeners/process_name.rb:88: warning: parenthesize argument(s) for future version
file { '/etc/hosts':
  ensure  => 'file',
  content => '{md5}7f9891702ded417769d632a1676ec793',
  ctime   => 'Wed Nov 30 02:41:10 +0100 2011',
  group   => '0',
  mode    => '644',                               <== should be '0644'
  mtime   => 'Wed Nov 30 02:25:47 +0100 2011',
  owner   => '0',
  type    => 'file',


#1 Updated by Anonymous about 4 years ago

  • Description updated (diff)
  • Status changed from Unreviewed to Accepted

Yup. I can confirm that.

Also available in: Atom PDF