mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-08 14:02:38 +00:00
This reverts commit 003d802065.
See: https://github.com/ansible-collections/community.kubernetes/pull/345#issuecomment-760291333
This commit is contained in:
@@ -124,12 +124,6 @@ from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
|||||||
from ansible_collections.community.kubernetes.plugins.module_utils.helm import run_helm
|
from ansible_collections.community.kubernetes.plugins.module_utils.helm import run_helm
|
||||||
|
|
||||||
|
|
||||||
# Remove trailing whitespaces
|
|
||||||
def remove_trailing_spaces(parameter):
|
|
||||||
if parameter is not None:
|
|
||||||
return parameter.strip(" ")
|
|
||||||
|
|
||||||
|
|
||||||
# Get repository from all repositories added
|
# Get repository from all repositories added
|
||||||
def get_repository(state, repo_name):
|
def get_repository(state, repo_name):
|
||||||
if state is not None:
|
if state is not None:
|
||||||
@@ -201,12 +195,12 @@ def main():
|
|||||||
|
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
bin_path = remove_trailing_spaces(module.params.get('binary_path'))
|
bin_path = module.params.get('binary_path')
|
||||||
repo_name = remove_trailing_spaces(module.params.get('repo_name'))
|
repo_name = module.params.get('repo_name')
|
||||||
repo_url = remove_trailing_spaces(module.params.get('repo_url'))
|
repo_url = module.params.get('repo_url')
|
||||||
repo_username = remove_trailing_spaces(module.params.get('repo_username'))
|
repo_username = module.params.get('repo_username')
|
||||||
repo_password = remove_trailing_spaces(module.params.get('repo_password'))
|
repo_password = module.params.get('repo_password')
|
||||||
repo_state = remove_trailing_spaces(module.params.get('repo_state'))
|
repo_state = module.params.get('repo_state')
|
||||||
|
|
||||||
if bin_path is not None:
|
if bin_path is not None:
|
||||||
helm_cmd = bin_path
|
helm_cmd = bin_path
|
||||||
|
|||||||
Reference in New Issue
Block a user