diff options
author | Michael Scherer <misc@zarb.org> | 2016-02-24 12:17:44 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2016-02-24 12:23:12 +0100 |
commit | 250494eaefcd475c69cc339654951683512a0e3f (patch) | |
tree | adc0148f74e9aeb755d8d01ede3cbb66cd48449c /clustering/consul_session.py | |
parent | 05ac6edd457d96ca0f005fe43a537d2f4fb0d936 (diff) | |
download | ansible-modules-extras-250494eaefcd475c69cc339654951683512a0e3f.tar.gz |
Remove unused variables
Session_id is unused in update_session, changed is always specifically
set in all exit_json call, and consul_client.session.destroy return True
or False, and is unused later (nor checked)
Diffstat (limited to 'clustering/consul_session.py')
-rw-r--r-- | clustering/consul_session.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clustering/consul_session.py b/clustering/consul_session.py index 5070c348..c9ffee80 100644 --- a/clustering/consul_session.py +++ b/clustering/consul_session.py @@ -172,14 +172,12 @@ def lookup_sessions(module): def update_session(module): name = module.params.get('name') - session_id = module.params.get('id') delay = module.params.get('delay') checks = module.params.get('checks') datacenter = module.params.get('datacenter') node = module.params.get('node') consul_client = get_consul_api(module) - changed = True try: @@ -208,10 +206,9 @@ def remove_session(module): remove a session.""") consul_client = get_consul_api(module) - changed = False try: - session = consul_client.session.destroy(session_id) + consul_client.session.destroy(session_id) module.exit_json(changed=True, session_id=session_id) |