Open
Description
Describe the Bug
When using the regular autorequire to attribute value expression, like this:
diff --git a/lib/puppet/type/panos_address_group.rb b/lib/puppet/type/panos_address_group.rb
--
index 97a6cf4..e12e47d 100644
--- a/lib/puppet/type/panos_address_group.rb
+++ b/lib/puppet/type/panos_address_group.rb
@@ -54,4 +54,7 @@ DESC
autobefore: {
panos_commit: 'commit',
},
+ autorequire: {
+ panos_address: '$static_members',
+ }
)
where static_members
is an array, the relation is set up to use the full array as title. Since titles can only be strings, this is wrong, and will lead to no actual relations being set up.
Expected Behavior
Defining an automatic relation based on an array-valued attribute should treat each element of the array as a potential relationship target.
Additional Context
This was originally reported as https://tickets.puppetlabs.com/browse/PDK-1094 - see there for additional logs & details.