Issue #21807 has been updated by Nan Liu.

Description updated

----------------------------------------
Bug #21807: Puppet ENC presents integer value, while manifests only present 
string value
https://projects.puppetlabs.com/issues/21807#change-94942

* Author: Nan Liu
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
Puppet ENC can present data as integer, while puppet manifests is always 
strings. This cause a comparison error.

    custom_type { 'a':
      value => { 'foo' => 1 },
    }

Puppet manifests munges this to value = { 'foo' => '1' }, but if we use ENC 
value integer 1:

    custom_type { 'a':
      value => { 'foo' => $enc_val }
    }

Now puppet compares against value = { 'foo' => 1 }. This is very inconsistent 
and we end up making the in_sync? function much more complicated than 
necessary. 



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to