Skip to content

Commit

Permalink
Force "isnamevar" on name parameter to fix "Cannot alias Shellvar, re…
Browse files Browse the repository at this point in the history
…source already declared" issue
  • Loading branch information
P6wG7 authored and kenyon committed Mar 29, 2024
1 parent c429b15 commit 63bcf2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ Default value: `auto`

##### <a name="-shellvar--name"></a>`name`

namevar

The default namevar

##### <a name="-shellvar--provider"></a>`provider`
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/type/shellvar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def sync

newparam(:name) do
desc 'The default namevar'
isnamevar
end

newparam(:variable) do
Expand Down

0 comments on commit 63bcf2e

Please sign in to comment.