From 02b906d70f0883657b6e9a97e9f6205bcb1e2ed2 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 25 Aug 2016 00:47:39 +0200 Subject: [PATCH] Remove redundant code AFAICT (#3908) --- lib/ansible/modules/commands/command.py | 32 ------------------------- 1 file changed, 32 deletions(-) diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index 9d3b3f8e26e..ca4d7d82bfe 100644 --- a/lib/ansible/modules/commands/command.py +++ b/lib/ansible/modules/commands/command.py @@ -104,38 +104,6 @@ import os from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.six import b -# Dict of options and their defaults -OPTIONS = {'chdir': None, - 'creates': None, - 'executable': None, - 'NO_LOG': None, - 'removes': None, - 'warn': True, - } - -# This is a pretty complex regex, which functions as follows: -# -# 1. (^|\s) -# ^ look for a space or the beginning of the line -# 2. ({options_list})= -# ^ expanded to (chdir|creates|executable...)= -# look for a valid param, followed by an '=' -# 3. (?P[\'"])? -# ^ look for an optional quote character, which can either be -# a single or double quote character, and store it for later -# 4. (.*?) -# ^ match everything in a non-greedy manner until... -# 5. (?(quote)(?[\'"])?(.*?)(?(quote)(?