Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Revert "helm - remove trailing whitespaces (#337) (#345)" (#346)
Browse files Browse the repository at this point in the history
This reverts commit 003d802.

See: #345 (comment)
  • Loading branch information
goneri authored Jan 14, 2021
1 parent b26afc3 commit 5a5ed79
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions plugins/modules/helm_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@
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
def get_repository(state, repo_name):
if state is not None:
Expand Down Expand Up @@ -201,12 +195,12 @@ def main():

changed = False

bin_path = remove_trailing_spaces(module.params.get('binary_path'))
repo_name = remove_trailing_spaces(module.params.get('repo_name'))
repo_url = remove_trailing_spaces(module.params.get('repo_url'))
repo_username = remove_trailing_spaces(module.params.get('repo_username'))
repo_password = remove_trailing_spaces(module.params.get('repo_password'))
repo_state = remove_trailing_spaces(module.params.get('repo_state'))
bin_path = module.params.get('binary_path')
repo_name = module.params.get('repo_name')
repo_url = module.params.get('repo_url')
repo_username = module.params.get('repo_username')
repo_password = module.params.get('repo_password')
repo_state = module.params.get('repo_state')

if bin_path is not None:
helm_cmd = bin_path
Expand Down

0 comments on commit 5a5ed79

Please sign in to comment.