summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/tracker/hostgroup_plugin.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-26 18:22:22 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-27 13:35:58 +0200
commit9d83be3647547cfca4e129cfeb63771213232cf7 (patch)
tree0899bfbc662355dd8d1318b5e6d4909c5aaa993c /ipatests/test_xmlrpc/tracker/hostgroup_plugin.py
parent0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (diff)
downloadfreeipa-9d83be3647547cfca4e129cfeb63771213232cf7.tar.gz
freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.tar.xz
freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.zip
Remove unused variables in tests
This commit removes or marks unused variables as "expected to be unused" by using '_' prefix. Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/tracker/hostgroup_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/tracker/hostgroup_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_xmlrpc/tracker/hostgroup_plugin.py b/ipatests/test_xmlrpc/tracker/hostgroup_plugin.py
index 8b63c90b0..080d0120a 100644
--- a/ipatests/test_xmlrpc/tracker/hostgroup_plugin.py
+++ b/ipatests/test_xmlrpc/tracker/hostgroup_plugin.py
@@ -91,7 +91,7 @@ class HostGroupTracker(Tracker):
try:
self.attrs[u'member_host'] =\
self.attrs[u'member_host'] + [options[u'host']]
- except KeyError as ex:
+ except KeyError:
self.attrs[u'member_host'] = [options[u'host']]
# search for hosts in the target hostgroup and
# add them as memberindirect hosts
@@ -99,7 +99,7 @@ class HostGroupTracker(Tracker):
try:
self.attrs[u'member_hostgroup'] =\
self.attrs[u'member_hostgroup'] + [options[u'hostgroup']]
- except KeyError as ex:
+ except KeyError:
self.attrs[u'member_hostgroup'] = [options[u'hostgroup']]
command = self.make_add_member_command(options)
@@ -116,12 +116,12 @@ class HostGroupTracker(Tracker):
try:
if not self.attrs[u'member_host']:
del self.attrs[u'member_host']
- except KeyError as ex:
+ except KeyError:
pass
try:
if not self.attrs[u'member_hostgroup']:
del self.attrs[u'member_hostgroup']
- except KeyError as ex:
+ except KeyError:
pass
command = self.make_remove_member_command(options)