Skip to content

Commit

Permalink
remove unused imports and fix other linters errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yurnov committed Nov 29, 2024
1 parent 9750b16 commit ff02893
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/kubernetes.core.helm_registry_auth_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
</td>
<td>always</td>
<td>
<div>Indicate if the state of the registry was changed</div>
<br/>
</td>
</tr>
Expand Down
13 changes: 5 additions & 8 deletions plugins/modules/helm_registry_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
returned: always
stderr:
type: str
description: Full `helm` command stderr, in case you want to display it or examine the event log. Please be note that helm binnary may print messages to stderr even if the command is successful.
description: >-
Full `helm` command stderr, in case you want to display it or examine the event log.
Please be note that helm binnary may print messages to stderr even if the command is successful.
returned: always
sample: 'Login Succeeded\n'
stderr_lines:
Expand All @@ -128,17 +130,12 @@
returned: always
"""

import copy
import traceback

from ansible.module_utils.basic import missing_required_lib
from ansible.module_utils.common.process import get_bin_path
from ansible_collections.kubernetes.core.plugins.module_utils.helm import (
AnsibleHelmModule,
)


def argument_spec():
def arg_spec():
arg_spec.update(
dict(
host=dict(type="str", aliases=["registry_url"], required=True),
Expand Down Expand Up @@ -196,7 +193,7 @@ def main():
global module

module = AnsibleHelmModule(
argument_spec=argument_spec(),
argument_spec=arg_spec(),
required_together=[["username", "password"]],
mutually_exclusive=None,
supports_check_mode=True,
Expand Down

0 comments on commit ff02893

Please sign in to comment.