summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuique Llorente <ellorent@redhat.com>2018-11-14 16:31:11 +0100
committerQuique Llorente <ellorent@redhat.com>2018-11-28 08:35:39 +0100
commit664102b7d455eee9c164a9fbe6eac04007f929f3 (patch)
treefc15e9bde329c5cedec3405d228c6dc3499ab9a6
parent33699fa31689b2b40cff5b103a55f7cbd80fc096 (diff)
Remove uneeded if statement
Since python3 is mandatory for zuul, we can use 'exist_ok' flag to simplify stuff a little. Change-Id: Idbb8f2bf8239adfdd4046ecee071f5c7f979cc68
Notes
Notes (review): Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Monty Taylor <mordred@inaugust.com> Workflow+1: Monty Taylor <mordred@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 29 Nov 2018 04:02:38 +0000 Reviewed-on: https://review.openstack.org/617984 Project: openstack-infra/zuul Branch: refs/heads/master
-rw-r--r--zuul/merger/merger.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/zuul/merger/merger.py b/zuul/merger/merger.py
index 8a397ee..ab898b9 100644
--- a/zuul/merger/merger.py
+++ b/zuul/merger/merger.py
@@ -495,8 +495,7 @@ class Merger(object):
495 self.log = logger 495 self.log = logger
496 self.repos = {} 496 self.repos = {}
497 self.working_root = working_root 497 self.working_root = working_root
498 if not os.path.exists(working_root): 498 os.makedirs(working_root, exist_ok=True)
499 os.makedirs(working_root)
500 self.connections = connections 499 self.connections = connections
501 self.email = email 500 self.email = email
502 self.username = username 501 self.username = username