Correcting script part for checkum of joining pkg arrays.

This commit is contained in:
Emiliano Vavassori 2015-09-30 01:55:45 +02:00
parent f38cbb23c5
commit ae7bfe752f
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ live_pkg_hash = ''
# Recreating pkg checksum
r = requests.get("http://%s:3000/ansible_host" % '{{ ansible_local.domain.serverfqdn }}')
if r.status_code == 200:
response = loads(r.text)
retval = response['addpkg'].sort() + response['delpkg'].sort()
response = loads(r.text.encode('ascii', 'ignore'))
retval = sorted(response['addpkg']) + sorted(response['delpkg'])
live_pkg_hash = md5("".join(retval)).hexdigest()
if isfile(pkgver_file):