Issue #13226 has been updated by Randall Hansen.
I agree with not showing this when running with `-e`. Perhaps we could show
them commented:
# type => 'file' # Read-only property
----------------------------------------
Bug #13226: puppet resource should not return unusable attributes
https://projects.puppetlabs.com/issues/13226#change-57527
Author: Ryan Coleman
Status: Needs Decision
Priority: Normal
Assignee: Randall Hansen
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Example:
<code>
[root@centos6 ~]# puppet resource file /etc/sudoers
file { '/etc/sudoers':
ensure => 'file',
content => '{md5}25e8c9fee3af1a108332dc2cd985f41f',
ctime => 'Sun Mar 18 05:21:44 +0100 2012',
group => '0',
mode => '440',
mtime => 'Sun Mar 18 05:21:44 +0100 2012',
owner => '0',
type => 'file',
}
</code>
Puppet resource returns attributes like type, which are read-only and not valid
in a manifest a user would write. This is ok for inspection but if a user adds
'-e' to the above command, modifies a property and writes out of the editor,
puppet will fail.
We should either ignore these read-only attributes when operating in this way
or not include them in the resource declaration that the user can edit.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.