minor change: remove an always true condition
Signed-off-by: Qixiang Wan <qwan@redhat.com>
This commit is contained in:
parent
ad23efd323
commit
8d41a004c3
@ -72,14 +72,13 @@ def get_compose_dir(topdir, conf, compose_type="production", compose_date=None,
|
|||||||
# break
|
# break
|
||||||
|
|
||||||
# already_exists_callbacks fallback: does target compose_dir exist?
|
# already_exists_callbacks fallback: does target compose_dir exist?
|
||||||
if not exists:
|
try:
|
||||||
try:
|
os.makedirs(compose_dir)
|
||||||
os.makedirs(compose_dir)
|
except OSError as ex:
|
||||||
except OSError as ex:
|
if ex.errno == errno.EEXIST:
|
||||||
if ex.errno == errno.EEXIST:
|
exists = True
|
||||||
exists = True
|
else:
|
||||||
else:
|
raise
|
||||||
raise
|
|
||||||
|
|
||||||
if exists:
|
if exists:
|
||||||
ci.compose.respin += 1
|
ci.compose.respin += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user