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

NoMethodError if skip_sticky_session is true #20

Open
sudhanshuraheja opened this issue Aug 2, 2012 · 1 comment
Open

NoMethodError if skip_sticky_session is true #20

sudhanshuraheja opened this issue Aug 2, 2012 · 1 comment

Comments

@sudhanshuraheja
Copy link

I'm using gem 0.0.5

If I set the following in the json file
"skip_sticky_session":true, "priority_for_sticky":"ttml,tata"

I get the following error

/usr/local/rvm/gems/ruby-1.9.3-p125/gems/ispunity-0.0.5/lib/sticky_session.rb:7:in "block in execute": undefined method "skip_sticky_session" for #Isp:0x8f49af4 (NoMethodError)

@kilmarnock
Copy link

"me too".

change file lib/isp_unity/isp.rb:

class Isp

attr_accessor :name, :interface, :gateway, :subnet, :network, :online, :enabled, :ip_address, :weight, :protocol, :port, :network_ip, :priority, :skip_sticky_session

def initialize(config_isp)
@name = config_isp['name']
@interface = config_isp['interface']
@gateway = config_isp['gateway']
@subnet = config_isp['subnet']
@network = config_isp['network']
@online = config_isp["online"]
@enabled = config_isp['enabled']
@ip_address = config_isp['ip_address']
@weight = config_isp['weight']
@protocol = config_isp['protocol']
@PORT = config_isp['port']
@network_ip = config_isp['network_ip']
@priority = config_isp['priority']
@skip_sticky_session = config_isp['skip_sticky_session']
end

end

after that, you do the same for dport :-)

My solution was to skip the sticky session stuff.

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