Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
cafc35fd
Commit
cafc35fd
authored
Aug 02, 2015
by
Chris Church
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for PowerShell unquote method when passed None.
parent
6d514e18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
lib/ansible/plugins/shell/powershell.py
+1
-0
test/integration/roles/test_win_template/tasks/main.yml
+11
-0
No files found.
lib/ansible/plugins/shell/powershell.py
View file @
cafc35fd
...
@@ -126,6 +126,7 @@ class ShellModule(object):
...
@@ -126,6 +126,7 @@ class ShellModule(object):
def
_unquote
(
self
,
value
):
def
_unquote
(
self
,
value
):
'''Remove any matching quotes that wrap the given value.'''
'''Remove any matching quotes that wrap the given value.'''
value
=
to_unicode
(
value
or
''
)
m
=
re
.
match
(
r'^\s*?\'(.*?)\'\s*?$'
,
value
)
m
=
re
.
match
(
r'^\s*?\'(.*?)\'\s*?$'
,
value
)
if
m
:
if
m
:
return
m
.
group
(
1
)
return
m
.
group
(
1
)
...
...
test/integration/roles/test_win_template/tasks/main.yml
View file @
cafc35fd
...
@@ -39,6 +39,17 @@
...
@@ -39,6 +39,17 @@
that
:
that
:
-
"
template_result.changed
==
true"
-
"
template_result.changed
==
true"
-
name
:
fill in a basic template again
win_template
:
src
:
foo.j2
dest
:
"
{{win_output_dir}}/foo.templated"
register
:
template_result2
-
name
:
verify that the template was not changed
assert
:
that
:
-
"
not
template_result2|changed"
# VERIFY CONTENTS
# VERIFY CONTENTS
-
name
:
copy known good into place
-
name
:
copy known good into place
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment