You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you really shouldn't reuse variable names, because once variable is declared/assigned in Puppet, it can't be changed. You have used variable $r for replica, therefore you can't use it later to store options which won't be removed.
$r =join(keys($remove),', ')notice("NOT REMOVING the following options for volume ${title}: ${r}.")
Fix is fairly easy. Just use different name for variable in question.
The text was updated successfully, but these errors were encountered:
zstyblik
pushed a commit
to zstyblik/puppet-gluster
that referenced
this issue
Aug 8, 2015
Commit fixes reuse of variable name in volume.pp. Variable name $r has been used
earlier to store replica information earlier and been (re)used to store
information about removed options later. Such thing is prohibited by Puppet.
Closesvoxpupuli#18
Commit fixes reuse of variable name in volume.pp. Variable name $r has been used
earlier to store replica information earlier and been (re)used to store
information about removed options later. Such thing is prohibited by Puppet.
Closesvoxpupuli#18
Hello,
you really shouldn't reuse variable names, because once variable is declared/assigned in Puppet, it can't be changed. You have used variable
$r
for replica, therefore you can't use it later to store options which won't be removed.Fix is fairly easy. Just use different name for variable in question.
The text was updated successfully, but these errors were encountered: