summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-05-19 10:24:43 +0200
committerMartin Basti <mbasti@redhat.com>2016-05-26 11:30:20 +0200
commit25eed1c6cb1808dfa05ce7be23aa7dea4ae0f466 (patch)
tree1641ebc62a0f2536fa57f365d23f4c6060d01971
parent0576a6827e9273979bc7a0c9c04bf91342c55282 (diff)
downloadfreeipa-25eed1c6cb1808dfa05ce7be23aa7dea4ae0f466.tar.gz
freeipa-25eed1c6cb1808dfa05ce7be23aa7dea4ae0f466.tar.xz
freeipa-25eed1c6cb1808dfa05ce7be23aa7dea4ae0f466.zip
Remove unused variables in automount plugin
https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
-rw-r--r--ipalib/plugins/automount.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py
index 85d7d1321..f5128572b 100644
--- a/ipalib/plugins/automount.py
+++ b/ipalib/plugins/automount.py
@@ -308,13 +308,9 @@ class automountlocation_tofiles(LDAPQuery):
__doc__ = _('Generate automount files for a specific location.')
def execute(self, *args, **options):
- ldap = self.obj.backend
+ self.api.Command['automountlocation_show'](args[0])
- location = self.api.Command['automountlocation_show'](args[0])
-
- maps = []
result = self.api.Command['automountkey_find'](args[0], u'auto.master')
- truncated = result['truncated']
maps = result['result']
# maps, truncated
@@ -328,7 +324,6 @@ class automountlocation_tofiles(LDAPQuery):
mapnames.append(info)
key = info.split(None)
result = self.api.Command['automountkey_find'](args[0], key[0])
- truncated = result['truncated']
keys[info] = result['result']
# TODO: handle truncated results, same as above
@@ -343,7 +338,6 @@ class automountlocation_tofiles(LDAPQuery):
for m in orphanmaps:
key = m['automountmapname']
result = self.api.Command['automountkey_find'](args[0], key[0])
- truncated = result['truncated']
orphankeys.append(result['result'])
return dict(result=dict(maps=maps, keys=keys,
@@ -463,7 +457,6 @@ class automountlocation_import(Command):
mapfile = am[1].replace('"','')
am[1] = os.path.basename(am[1])
maps[am[1]] = mapfile
- info = ' '.join(am[1:])
# Add a new key to the auto.master map for the new map file
try: