Closed chantra closed 9 years ago
What? this works just fine in 12... all classes in libraries
are available in the recipe DSL.
Well, this is what happen when using it from a recipe that has the following content: include_recipe 'fb_sysctl' node.default['fb']['fb_sysctl']['net.ipv4.tcp_syncookies'] = '1'
OK, so we didn't namespace it in the internal version. Let me try to get our internal in sync with this and test again.
OK, I can repro this. Can you instead do this:
def sysctl_in_sync?
to def self.sysctl_in_sync?(node)
FB::Sysctl.sysctl_in_sync?(node)
You won't need the send
at that point, it'll all just work.
Thanks.
(I'm also happy to do my own PR for that if you prefer, but I figured you'd rather do it)
@jaymzh yeah, I am good doing it.
Thanks!
Without that FB::FBSysctl.sysctl_in_sync? was not found. Pretty much #dogsciencing this