Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail: undefined method `each' for "check_haproxy":String in 4.1.0 #323

Open
mburlic opened this issue Mar 21, 2024 · 4 comments
Open

Detail: undefined method `each' for "check_haproxy":String in 4.1.0 #323

mburlic opened this issue Mar 21, 2024 · 4 comments

Comments

@mburlic
Copy link

mburlic commented Mar 21, 2024

When trying to update to 4.1.0

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template keepalived/vrrp_instance.erb:
  Filepath: /etc/puppetlabs/code/environments/haprox/modules/keepalived/templates/vrrp_instance.erb
  Line: 103
  Detail: undefined method `each' for "check_haproxy":String
 (file: /etc/puppetlabs/code/environments/haprox/modules/keepalived/manifests/vrrp/instance.pp, line: 291, column: 16) (file: /etc/puppetlabs/code/environments/haprox/modules/keepalived/manifests/config.pp, line: 62) on node
@mburlic
Copy link
Author

mburlic commented Mar 21, 2024

I see changes were made 2 days ago. Hopping for release soon.

@jadestorm
Copy link

I am also seeing this -- it is due to track_script accepting only a String, but the template file was updated to treat it like an array. I actually do not see a fix for this in the latest code:
https://github.com/voxpupuli/puppet-keepalived/blob/master/templates/vrrp_instance.erb#L102C1-L103C1

@jadestorm
Copy link

Well to be fair -- the latest code would allow me to wrap my string in an array and solve it. =) But it's also allowing a String to be passed but the template (I think?) would fail as far as I'm reading it.

@jadestorm
Copy link

I stand corrected -- the latest code does indeed handle passing a single string just fine. I must be missing something in my reading of the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants