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

Commit

Permalink
Minor refactor in helm_info and helm_repository
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde committed Jun 5, 2020
1 parent 3078131 commit 2027d2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions plugins/modules/helm_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: Ansible Project
# Copyright: (c) 2020, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
Expand All @@ -23,7 +23,7 @@
- "yaml (https://pypi.org/project/PyYAML/)"
description:
- Get information (values, states, ...) from Helm package deployed inside the cluster
- Get information (values, states, ...) from Helm package deployed inside the cluster.
options:
binary_path:
Expand Down Expand Up @@ -63,7 +63,7 @@
release_namespace: monitoring
'''

RETURN = r"""
RETURN = r'''
status:
type: complex
description: A dictionary of status output
Expand Down Expand Up @@ -101,7 +101,7 @@
type: str
returned: always
description: Dict of Values used to deploy
"""
'''

import traceback

Expand Down Expand Up @@ -211,8 +211,8 @@ def main():

if release_status is not None:
module.exit_json(changed=False, status=release_status)
else:
module.exit_json(changed=False)

module.exit_json(changed=False)


if __name__ == '__main__':
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/helm_repository.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: Ansible Project
# Copyright: (c) 2020, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
Expand All @@ -23,7 +23,7 @@
- "yaml (https://pypi.org/project/PyYAML/)"
description:
- Manage Helm repositories
- Manage Helm repositories.
options:
binary_path:
Expand Down

0 comments on commit 2027d2c

Please sign in to comment.