Skip to content

Commit ff02893

Browse files
committed
remove unused imports and fix other linters errors
1 parent 9750b16 commit ff02893

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/kubernetes.core.helm_registry_auth_module.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
235235
</td>
236236
<td>always</td>
237237
<td>
238+
<div>Indicate if the state of the registry was changed</div>
238239
<br/>
239240
</td>
240241
</tr>

plugins/modules/helm_registry_auth.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@
105105
returned: always
106106
stderr:
107107
type: str
108-
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.
108+
description: >-
109+
Full `helm` command stderr, in case you want to display it or examine the event log.
110+
Please be note that helm binnary may print messages to stderr even if the command is successful.
109111
returned: always
110112
sample: 'Login Succeeded\n'
111113
stderr_lines:
@@ -128,17 +130,12 @@
128130
returned: always
129131
"""
130132

131-
import copy
132-
import traceback
133-
134-
from ansible.module_utils.basic import missing_required_lib
135-
from ansible.module_utils.common.process import get_bin_path
136133
from ansible_collections.kubernetes.core.plugins.module_utils.helm import (
137134
AnsibleHelmModule,
138135
)
139136

140137

141-
def argument_spec():
138+
def arg_spec():
142139
arg_spec.update(
143140
dict(
144141
host=dict(type="str", aliases=["registry_url"], required=True),
@@ -196,7 +193,7 @@ def main():
196193
global module
197194

198195
module = AnsibleHelmModule(
199-
argument_spec=argument_spec(),
196+
argument_spec=arg_spec(),
200197
required_together=[["username", "password"]],
201198
mutually_exclusive=None,
202199
supports_check_mode=True,

0 commit comments

Comments
 (0)