The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #12365

2.7.10 puppet resource file only displays 3 digits for file mode

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

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

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

running puppet resource file on a file, shows a 3 digit file mode, should be 4. as mentioned in the style guide; http://docs.puppetlabs.com/guides/style_guide.html#file-modes

example;
# rpm -q puppet
puppet-2.7.10-1.el5
#

# 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',
}
#

History

#1 Updated by Daniel Pittman about 2 years ago

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

Yup. I can confirm that.

Also available in: Atom PDF