fix import for exception

This commit is contained in:
Stephan Kulow 2014-02-18 09:21:29 +01:00
parent 5f6f2b84b3
commit 4879a4b509

View File

@ -10,6 +10,7 @@ from xml.etree import cElementTree as ET
import yaml import yaml
import re import re
import string import string
import urllib2
from osc import oscerr from osc import oscerr
from osc.core import change_review_state from osc.core import change_review_state
@ -443,7 +444,7 @@ class StagingAPI(object):
for module in openqa['testmodules']: for module in openqa['testmodules']:
# zypper_in fails at the moment - urgent fix needed # zypper_in fails at the moment - urgent fix needed
if module['result'] != 'ok' and module['name'] != 'zypper_in': if module['result'] != 'ok' and module['name'] != 'yast2_i':
return "{} test failed".format(module['name']) return "{} test failed".format(module['name'])
return None return None