Details
Description
When one module path is a substring of another, users can get incorrect name location validation errors.
kris.bosland@kris:puppet % bx puppet apply --modulepath ../tmp/test/modules:../tmp/test/modules.common -e 'class test { include bash }; include test' ±[5.5.6^0] |
Warning: Unacceptable location. The name 'bash' is unacceptable in file '/Users/kris.bosland/work/tmp/test/modules.common/bash/manifests/init.pp' (file: /Users/kris.bosland/work/tmp/test/modules.common/bash/manifests/init.pp, line: 1, column: 1) |
Notice: Compiled catalog for kris.bosland-c02kf9eafft1 in environment production in 0.57 seconds |
Error: Mac OS X PKG DMGs must specify a package source. |
Error: /Stage[main]/Bash/Package[shells/bash]/ensure: change from 'absent' to 'present' failed: Mac OS X PKG DMGs must specify a package source. |
Notice: Applied catalog in 0.02 seconds |
kris.bosland@kris:puppet % cat ../tmp/test/modules.common/bash/manifests/init.pp ±[5.5.6^0] |
class bash { |
package { "shells/bash": |
ensure => installed,
|
}
|
}
|
kris.bosland@kris:puppet % |