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
2575e154
Commit
2575e154
authored
Jul 27, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11740 from amenonsen/8602-rebase
Encrypt the vault file after editing only if the contents changed
parents
d2346fd2
f8bf2ba1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/ansible/parsing/vault/__init__.py
+4
-0
No files found.
lib/ansible/parsing/vault/__init__.py
View file @
2575e154
...
...
@@ -227,6 +227,10 @@ class VaultEditor(object):
call
(
self
.
_editor_shell_command
(
tmp_path
))
tmpdata
=
self
.
read_data
(
tmp_path
)
# Do nothing if the content has not changed
if
existing_data
==
tmpdata
:
return
# create new vault
this_vault
=
VaultLib
(
self
.
password
)
if
cipher
:
...
...
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