Skip to content

Variable $subscribe shoud not be overwritten #470

@seocam

Description

@seocam

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.8.2
  • Ruby: 2.3.3
  • Distribution: Debian GNU/Linux 9.5 (stretch)
  • Module version: 2.2.2

How to reproduce (e.g Puppet code you use)

python::requirements { '/tmp/requirements.txt':
    virtualenv => $venv_directory,
    subscribe  => Vcsrepo[$app_directory],
    require    => Python::Pyvenv[$venv],
}

What are you seeing

I cannot make any of my instances of python::requirements subscribe to other resources because inside of puppet-python requirements.pp the $subscribe variable (meta variable of puppet) is overwritten.

What behaviour did you expect instead

I'd expect to be able to subscribe to a resource. Renaming $subscribe inside requirements.pp to something else would probably be enough.

Because of that I had to keep stankevich-python instead of updating it to voxpupuli version.

Output log

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Cannot reassign variable '$subscribe' at /etc/puppet/modules/python/manifests/requirements.pp:134:16 at /etc/puppet/modules/profile/manifests/api.pp:151 on node 2950a0e0-flower.2950a0e0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions