diff options
| author | Sayan Chowdhury <sayan.chowdhury2012@gmail.com> | 2016-06-28 21:52:18 +0530 |
|---|---|---|
| committer | Sayan Chowdhury <sayanchowdhury@fedoraproject.org> | 2016-06-28 16:23:51 +0000 |
| commit | 9c3d0c0a77df091734fa847ebc29fc0f4c1f5a4c (patch) | |
| tree | 23720ea506d4aeb443db505be6d607910b45c988 /files/hotfix | |
| parent | aa978492710ead1e9c28921b1a4402df4c867db6 (diff) | |
| download | ansible-9c3d0c0a77df091734fa847ebc29fc0f4c1f5a4c.tar.gz ansible-9c3d0c0a77df091734fa847ebc29fc0f4c1f5a4c.tar.xz ansible-9c3d0c0a77df091734fa847ebc29fc0f4c1f5a4c.zip | |
Hotfix for autocloud
Diffstat (limited to 'files/hotfix')
| -rw-r--r-- | files/hotfix/autocloud/autocloud_job.py | 7 | ||||
| -rw-r--r-- | files/hotfix/autocloud/consumer.py | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/files/hotfix/autocloud/autocloud_job.py b/files/hotfix/autocloud/autocloud_job.py index 3acf0a619..54308df8e 100644 --- a/files/hotfix/autocloud/autocloud_job.py +++ b/files/hotfix/autocloud/autocloud_job.py @@ -4,11 +4,11 @@ import datetime import json import os import subprocess -import sys from collections import defaultdict -import fedfind.release +import fedfind +import fedfind.helpers from retask.queue import Queue @@ -279,8 +279,7 @@ def check_status_of_compose_image(compose_id): session.commit() compose_id = compose_obj.compose_id - rel = fedfind.release.get_release(cid=compose_id) - release = rel.release + (release, _, _, _) = fedfind.helpers.parse_cid(compose_id) params = { 'compose_id': compose_obj.compose_id, diff --git a/files/hotfix/autocloud/consumer.py b/files/hotfix/autocloud/consumer.py index 33db5205b..a9ef4aac8 100644 --- a/files/hotfix/autocloud/consumer.py +++ b/files/hotfix/autocloud/consumer.py @@ -3,7 +3,8 @@ from datetime import datetime import requests import fedmsg.consumers -import fedfind.release +import fedfind +import fedfind.helpers from sqlalchemy import exc @@ -72,8 +73,7 @@ class AutoCloudConsumer(fedmsg.consumers.FedmsgConsumer): ) compose_id = compose_details['id'] - rel = fedfind.release.get_release(cid=compose_id) - release = rel.release + (release, _, _, _) = fedfind.helpers.parse_cid(compose_id) compose_details.update({'release': release}) |
