Jira (PUP-6770) Method #uniqueness_key computes different results for the same resource.

1 view
Skip to first unread message

Thomas Hallgren (JIRA)

unread,
Oct 4, 2016, 8:39:05 AM10/4/16
to puppe...@googlegroups.com
Thomas Hallgren created an issue
 
Puppet / Bug PUP-6770
Method #uniqueness_key computes different results for the same resource.
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2016/10/04 5:38 AM
Priority: Normal Normal
Reporter: Thomas Hallgren

A resource defined as File['/tmp/test/'] will yield different results for the #uniqueness_key when the resource is added to the catalog as a result of a compilation and added to a catalog as the result of a call to Catalog#to_ral. The former case will retain the trailing slash in the key whereas the latter will remove it.

This is a problem because a compile might add two resource to the catalog (same path, but with and without trailing slash) and a subsequent apply will then crash on an alias conflict.

The solution probably involves a rewrite of the logic dealing with namevar and parameters.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Maggie Dreyer (JIRA)

unread,
May 16, 2017, 5:37:03 PM5/16/17
to puppe...@googlegroups.com

Lindsey Smith (JIRA)

unread,
Oct 5, 2017, 5:25:03 PM10/5/17
to puppe...@googlegroups.com
Lindsey Smith updated an issue
Change By: Lindsey Smith
Team: Puppet Developer Experience Platform Core

Josh Cooper (Jira)

unread,
Jun 11, 2020, 11:18:03 AM6/11/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP-7548
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages