minor change: remove an always true condition

Signed-off-by: Qixiang Wan <qwan@redhat.com>
This commit is contained in:
Qixiang Wan 2017-02-14 16:36:32 +08:00
parent ad23efd323
commit 8d41a004c3

View File

@ -72,14 +72,13 @@ def get_compose_dir(topdir, conf, compose_type="production", compose_date=None,
# break
# already_exists_callbacks fallback: does target compose_dir exist?
if not exists:
try:
os.makedirs(compose_dir)
except OSError as ex:
if ex.errno == errno.EEXIST:
exists = True
else:
raise
try:
os.makedirs(compose_dir)
except OSError as ex:
if ex.errno == errno.EEXIST:
exists = True
else:
raise
if exists:
ci.compose.respin += 1