Move from md5 to sha1 to work on fips-140 enabled systems
This commit is contained in:
parent
664858ec20
commit
5a514ccdda
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ def main():
|
||||||
changed = True
|
changed = True
|
||||||
|
|
||||||
if state == 'present' and deployed:
|
if state == 'present' and deployed:
|
||||||
if module.md5(src) != module.md5(os.path.join(deploy_path, deployment)):
|
if module.sha1(src) != module.sha1(os.path.join(deploy_path, deployment)):
|
||||||
os.remove(os.path.join(deploy_path, "%s.deployed"%(deployment)))
|
os.remove(os.path.join(deploy_path, "%s.deployed"%(deployment)))
|
||||||
shutil.copyfile(src, os.path.join(deploy_path, deployment))
|
shutil.copyfile(src, os.path.join(deploy_path, deployment))
|
||||||
deployed = False
|
deployed = False
|
||||||
|
|
Loading…
Reference in a new issue