diff options
author | Ricky Cook <rcook@odecee.com.au> | 2014-10-08 22:59:03 +1100 |
---|---|---|
committer | Ricky Cook <rcook@odecee.com.au> | 2014-10-09 21:25:58 +1100 |
commit | 6db328c79a8c1f406fdab4e901732ecc9682ced3 (patch) | |
tree | 1c95c1ad60c5c176eabbc47718ae6c8fdf15fdfa /commands/command.py | |
parent | b195b5a6bb65acfbfddc61885df1fe9d721c34a3 (diff) | |
download | ansible-modules-core-6db328c79a8c1f406fdab4e901732ecc9682ced3.tar.gz |
Fix regex string format
Diffstat (limited to 'commands/command.py')
-rw-r--r-- | commands/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/command.py b/commands/command.py index 44c95a3d..2b79b327 100644 --- a/commands/command.py +++ b/commands/command.py @@ -127,7 +127,7 @@ OPTIONS = {'chdir': None, # the line is reached OPTIONS_REGEX = '|'.join(OPTIONS.keys()) PARAM_REGEX = re.compile( - r'(^|\s)({options_list})=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'.format( + r'(^|\s)({options_regex})=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'.format( options_regex=OPTIONS_REGEX ) ) |