aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/library/fetch_url_and_verify.py
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-12-07 15:29:57 +0000
committerEmma Foley <emma.l.foley@intel.com>2018-12-07 15:35:56 +0000
commit2f2fb869fc5cc03d6c34fdc4aac0936a44899235 (patch)
tree947cfc7bdc9658acaaaafd40be751dc52fbf91b8 /ansible/library/fetch_url_and_verify.py
parentb7a4b50f3f7fdbeaddd0d62762769a7509953591 (diff)
Fix pylint warnings in fetch_url_and_verify
Disable pylint checking in ansible module, to avoid unused-wildcard-import and wrong-import-position The wildcard import is required for ansile to be able to use the module. JIRA: YARDSTICK-1527 Signed-off-by: Emma Foley <emma.l.foley@intel.com> Change-Id: Icc358555f59c8cc088f6f22e4fab8ee2205daff2
Diffstat (limited to 'ansible/library/fetch_url_and_verify.py')
-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()