aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/library
diff options
context:
space:
mode:
authorVolodymyr Mytnyk <volodymyrx.mytnyk@intel.com>2018-12-11 08:55:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-12-11 08:55:23 +0000
commit44809c7f98b6182fd1724b8ccd6f546a50db2731 (patch)
tree865eb91f7d629728c8424127f1b3798186138108 /ansible/library
parentd59d0329f807c627174f9de711a656be2a416fa5 (diff)
parent2f2fb869fc5cc03d6c34fdc4aac0936a44899235 (diff)
Merge "Fix pylint warnings in fetch_url_and_verify"
Diffstat (limited to 'ansible/library')
-rw-r--r--ansible/library/fetch_url_and_verify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ansible/library/fetch_url_and_verify.py b/ansible/library/fetch_url_and_verify.py
index 6c5c0a8c2..77ff916cc 100644
--- a/ansible/library/fetch_url_and_verify.py
+++ b/ansible/library/fetch_url_and_verify.py
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# pylint: disable-all
+
DOCUMENTATION = '''
---
module: fetch_url_and_verify
@@ -59,7 +61,7 @@ def main():
module.exit_json(changed=False, dest=dest, url=url,
sha256sum=sha256sum)
- for retry in range(retries):
+ for _ in range(retries):
curl_rc, stdout, stderr = module.run_command(
['curl', '-sS', '-o', dest, url], cwd=image_dir)
if curl_rc == 0:
@@ -74,7 +76,7 @@ def main():
# <<INCLUDE_ANSIBLE_MODULE_COMMON>>
-from ansible.module_utils.basic import * # noqa
+from ansible.module_utils.basic import *
if __name__ == '__main__':
main()