Skip to content

Instantly share code, notes, and snippets.

@ryanycoleman
Forked from dblessing/array
Created June 26, 2014 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanycoleman/9f14dc93d944ba30cd56 to your computer and use it in GitHub Desktop.
Save ryanycoleman/9f14dc93d944ba30cd56 to your computer and use it in GitHub Desktop.
Monitor association changes string to array on one side, but other side is still a string. Causes a constantly change attempt:
-----
monitor_association changed '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "quorum"=>"0", "monitor_templates"=>"/Common/MyMonitor"}' to '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "monitor_templates"=>["/Common/MyMonitor"], "quorum"=>"0"}'
https://github.com/puppetlabs/puppetlabs-f5/blob/master/lib/puppet/provider/f5_pool/f5_pool.rb#L100
Silently fails because =! is not a valid comparator
-----
if current_members =! [nil]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment