ansible-vars 1.0.16__py3-none-any.whl → 1.0.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ansible_vars/util.py +2 -3
- {ansible_vars-1.0.16.dist-info → ansible_vars-1.0.17.dist-info}/METADATA +1 -1
- {ansible_vars-1.0.16.dist-info → ansible_vars-1.0.17.dist-info}/RECORD +6 -6
- {ansible_vars-1.0.16.dist-info → ansible_vars-1.0.17.dist-info}/WHEEL +0 -0
- {ansible_vars-1.0.16.dist-info → ansible_vars-1.0.17.dist-info}/entry_points.txt +0 -0
- {ansible_vars-1.0.16.dist-info → ansible_vars-1.0.17.dist-info}/licenses/LICENSE +0 -0
ansible_vars/util.py
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
# Standard library imports
|
4
4
|
import os, atexit
|
5
5
|
from glob import glob
|
6
|
-
from pathlib import Path
|
7
6
|
from functools import wraps
|
8
7
|
from datetime import datetime
|
9
8
|
from typing import Callable
|
@@ -38,7 +37,7 @@ class DiffLogger():
|
|
38
37
|
You can specify an optional comment string which will be included.
|
39
38
|
'''
|
40
39
|
# Check if any changes happened
|
41
|
-
diff:
|
40
|
+
diff: str | None = curr_vault.diff(prev_vault, context_lines=0, show_filenames=True)
|
42
41
|
if not force and not diff:
|
43
42
|
return None
|
44
43
|
# Build entry
|
@@ -55,7 +54,7 @@ class DiffLogger():
|
|
55
54
|
# Diff
|
56
55
|
lines.append('DIFF')
|
57
56
|
if diff:
|
58
|
-
lines += diff
|
57
|
+
lines += diff.split('\n')
|
59
58
|
else:
|
60
59
|
lines.append('No changes.')
|
61
60
|
#lines.append(OUTER_SEP)
|
@@ -3,11 +3,11 @@ ansible_vars/cli.py,sha256=cp891u9-kZoJireRIsTh-zy_9cTZPifLio2U7NqRoQM,66428
|
|
3
3
|
ansible_vars/constants.py,sha256=VNr78qbzdJ0Vn0psbzjjQngNG3VbHhk6NXTz30VNUno,1622
|
4
4
|
ansible_vars/errors.py,sha256=6dzyksPKWira9O2-Ir3MIOwr4XjN9MSBiRp5e6siY6Q,1256
|
5
5
|
ansible_vars/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
ansible_vars/util.py,sha256=
|
6
|
+
ansible_vars/util.py,sha256=NJ_qufelfe0m4i80sb81PYYbbkVhoHNcpkJdl8XYpTQ,21241
|
7
7
|
ansible_vars/vault.py,sha256=pBZVz64qdj1vstC9rZBIJ3O9n-_AHhhbySN1Q7eMWho,47199
|
8
8
|
ansible_vars/vault_crypt.py,sha256=ZXa6QywyWdRVhY3YkFuk-COYs50MG252uakqe3bUUog,12116
|
9
|
-
ansible_vars-1.0.
|
10
|
-
ansible_vars-1.0.
|
11
|
-
ansible_vars-1.0.
|
12
|
-
ansible_vars-1.0.
|
13
|
-
ansible_vars-1.0.
|
9
|
+
ansible_vars-1.0.17.dist-info/METADATA,sha256=-OQpTFwCeOawRVBI1HV_oG2Jlxbmb52GKkQ2pskSCbk,21071
|
10
|
+
ansible_vars-1.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
11
|
+
ansible_vars-1.0.17.dist-info/entry_points.txt,sha256=RrhkEH0MbfRzflguVrfYfthsFC5V2fkFnizUG3uHMtQ,55
|
12
|
+
ansible_vars-1.0.17.dist-info/licenses/LICENSE,sha256=ocyJHLG5wD12qB4uam2pqWTHIJmzloiyNyTex6Q2DKo,1062
|
13
|
+
ansible_vars-1.0.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|