python-consul
python-consul copied to clipboard
Token parameter is not passed in Session API Calls
in base/consul.py functions sesson create session renew session destroy session list session node
token is not passed in the http requets and it gives ACL permission denied error when using with consul server with ACL enabled .
adding the code token = self.agent.token if token: params.append(('token', token))
in the function resolves the issues and passes the ACL token in the http requests calls . without these ACL error is observed in these function calls .