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 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: list[str] = curr_vault.diff(prev_vault, context_lines=0, show_filenames=True).split('\n')
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ansible-vars
3
- Version: 1.0.16
3
+ Version: 1.0.17
4
4
  Summary: Manage vaults and variable files for Ansible
5
5
  Project-URL: Homepage, https://github.com/xorwow/ansible-vars
6
6
  Project-URL: Issues, https://github.com/xorwow/ansible-vars/issues
@@ -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=UwGPBT19pee7lBpWuBzLPAvcrHUBAn6i1MrJvzM9OQ4,21265
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.16.dist-info/METADATA,sha256=QqgRP-yb3BHIis97g15QFpQNn5kL2stPVRmz5KZmQ6A,21071
10
- ansible_vars-1.0.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- ansible_vars-1.0.16.dist-info/entry_points.txt,sha256=RrhkEH0MbfRzflguVrfYfthsFC5V2fkFnizUG3uHMtQ,55
12
- ansible_vars-1.0.16.dist-info/licenses/LICENSE,sha256=ocyJHLG5wD12qB4uam2pqWTHIJmzloiyNyTex6Q2DKo,1062
13
- ansible_vars-1.0.16.dist-info/RECORD,,
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,,