Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add ansible scripts to deploy Kubernetes
[yardstick.git]
/
ansible
/
library
/
fetch_url_and_verify.py
diff --git
a/ansible/library/fetch_url_and_verify.py
b/ansible/library/fetch_url_and_verify.py
index
6c5c0a8
..
13e8608
100644
(file)
--- 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.
# See the License for the specific language governing permissions and
# limitations under the License.
+# pylint: disable-all
+
DOCUMENTATION = '''
---
module: fetch_url_and_verify
DOCUMENTATION = '''
---
module: fetch_url_and_verify
@@
-42,6
+44,7
@@
def main():
dest = params['dest']
sha256url = params['sha256url']
retries = params['retries']
dest = params['dest']
sha256url = params['sha256url']
retries = params['retries']
+ sha256line = ''
image_dir, image_filename = os.path.split(dest)
rc, stdout, stderr = module.run_command(['curl', '-sS', sha256url])
image_dir, image_filename = os.path.split(dest)
rc, stdout, stderr = module.run_command(['curl', '-sS', sha256url])
@@
-59,7
+62,7
@@
def main():
module.exit_json(changed=False, dest=dest, url=url,
sha256sum=sha256sum)
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:
curl_rc, stdout, stderr = module.run_command(
['curl', '-sS', '-o', dest, url], cwd=image_dir)
if curl_rc == 0:
@@
-74,7
+77,7
@@
def main():
# <<INCLUDE_ANSIBLE_MODULE_COMMON>>
# <<INCLUDE_ANSIBLE_MODULE_COMMON>>
-from ansible.module_utils.basic import *
# noqa
+from ansible.module_utils.basic import *
if __name__ == '__main__':
main()
if __name__ == '__main__':
main()