Skip to content

Commit

Permalink
* Add changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
  • Loading branch information
alinabuzachis committed Apr 8, 2021
1 parent 222960d commit 117c033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelogs/fragments/46-cachefile_dynamic_client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46).
- Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46).
2 changes: 1 addition & 1 deletion plugins/module_utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def auth_set(*names):
if digest in get_api_client._pool:
client = get_api_client._pool[digest]
return client

def generate_cache_file(kubeclient):
import hashlib
cache_file_name = 'k8srcp-{0}.json'.format(hashlib.sha1(get_default_cache_id(kubeclient)).hexdigest())
Expand Down

0 comments on commit 117c033

Please sign in to comment.