Commit 2c39576e by James Tanner

Remove unused variable from authorized_key

parent 1f1fa6c0
...@@ -198,7 +198,6 @@ def parseoptions(module, options): ...@@ -198,7 +198,6 @@ def parseoptions(module, options):
and returns a dictionary of those options and returns a dictionary of those options
''' '''
options_dict = keydict() #ordered dict options_dict = keydict() #ordered dict
key_order = []
if options: if options:
token_exp = [ token_exp = [
# matches separator # matches separator
...@@ -220,10 +219,8 @@ def parseoptions(module, options): ...@@ -220,10 +219,8 @@ def parseoptions(module, options):
if is_valid_option: if is_valid_option:
if len(match.groups()) == 2: if len(match.groups()) == 2:
options_dict[match.group(1)] = match.group(2) options_dict[match.group(1)] = match.group(2)
key_order.append(match.group(1))
else: else:
options_dict[text] = None options_dict[text] = None
key_order.append(text)
break break
if not match: if not match:
module.fail_json(msg="invalid option string: %s" % options) module.fail_json(msg="invalid option string: %s" % options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment