ansible-vars 1.0.0__py3-none-any.whl → 1.0.2__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/cli.py +5 -1
- {ansible_vars-1.0.0.dist-info → ansible_vars-1.0.2.dist-info}/METADATA +2 -2
- {ansible_vars-1.0.0.dist-info → ansible_vars-1.0.2.dist-info}/RECORD +6 -6
- {ansible_vars-1.0.0.dist-info → ansible_vars-1.0.2.dist-info}/WHEEL +0 -0
- {ansible_vars-1.0.0.dist-info → ansible_vars-1.0.2.dist-info}/entry_points.txt +0 -0
- {ansible_vars-1.0.0.dist-info → ansible_vars-1.0.2.dist-info}/licenses/LICENSE +0 -0
ansible_vars/cli.py
CHANGED
@@ -201,7 +201,7 @@ args: ArgumentParser = ArgumentParser(
|
|
201
201
|
def _prefixed_path_completer(prefix: str, **_) -> list[str]:
|
202
202
|
has_prefix: bool = len(prefix) > 1 and prefix[:2] in ( 'h:', 'g:', 'v:' )
|
203
203
|
resolved_prefix: str | None = { 'h:': 'host_vars', 'g:': 'group_vars', 'v:': 'vars' }[prefix[:2]] if has_prefix else None
|
204
|
-
if resolved_prefix and os.path.isdir(os.path.abspath(resolved_prefix
|
204
|
+
if resolved_prefix and os.path.isdir(os.path.abspath(resolved_prefix)):
|
205
205
|
# Replace prefix with actual path
|
206
206
|
path_prefix: str = prefix[:3] if (len(prefix) > 2 and prefix[2] == os.path.sep) else prefix[:2]
|
207
207
|
new_prefix: str = os.path.join(resolved_prefix, prefix[len(path_prefix):])
|
@@ -981,3 +981,7 @@ if config.command in [ 'get', 'set', 'del' ]:
|
|
981
981
|
vault.save()
|
982
982
|
print_diff(vault.diff(old_vault, show_filenames=True))
|
983
983
|
_set_del()
|
984
|
+
|
985
|
+
# Entry point for python package
|
986
|
+
def main() -> None:
|
987
|
+
pass
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ansible-vars
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
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
|
@@ -204,7 +204,7 @@ Creates, updates, or deletes a key-value pair from a vault or variable file. Whe
|
|
204
204
|
|
205
205
|
### Python library
|
206
206
|
|
207
|
-
When using `ansible-vars` as a library, these
|
207
|
+
When using `ansible-vars` as a library, import any of these modules from the `ansible_vars` module.
|
208
208
|
|
209
209
|
#### vault module
|
210
210
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
ansible_vars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
ansible_vars/cli.py,sha256
|
2
|
+
ansible_vars/cli.py,sha256=p61K5I4GUCRJ3YJO2ETCHZwug6gVXDn6gJBN7XZ8hOQ,55395
|
3
3
|
ansible_vars/constants.py,sha256=Nd3sIuSoOvyfUfHfnsnJBDGMW7eNzbMm1NAvEQio9hE,1624
|
4
4
|
ansible_vars/errors.py,sha256=VnViEBMR3rIeioMj460DgdBA5S5FYiDObaDDhG2FMBs,857
|
5
5
|
ansible_vars/util.py,sha256=BzS7n3UzaKqVZ3W78HVkJtdVCYofprqQDtU8wYH1d0Q,21325
|
6
6
|
ansible_vars/vault.py,sha256=_dp1K5_UAFGgcg6iO4on4-L_BaJO2cHP6My3EU6enA4,45593
|
7
7
|
ansible_vars/vault_crypt.py,sha256=JcFc6dTZ6EqhKXv_C5ofggTpBK8hWG3ZwrBrDNYcEIg,9501
|
8
|
-
ansible_vars-1.0.
|
9
|
-
ansible_vars-1.0.
|
10
|
-
ansible_vars-1.0.
|
11
|
-
ansible_vars-1.0.
|
12
|
-
ansible_vars-1.0.
|
8
|
+
ansible_vars-1.0.2.dist-info/METADATA,sha256=A5ahFj14_6Let_rry0eAyVD46DNwCXPOR-RdRUggQm4,15717
|
9
|
+
ansible_vars-1.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
ansible_vars-1.0.2.dist-info/entry_points.txt,sha256=RrhkEH0MbfRzflguVrfYfthsFC5V2fkFnizUG3uHMtQ,55
|
11
|
+
ansible_vars-1.0.2.dist-info/licenses/LICENSE,sha256=ocyJHLG5wD12qB4uam2pqWTHIJmzloiyNyTex6Q2DKo,1062
|
12
|
+
ansible_vars-1.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|