From d7db5da93891611b1c378b3f42b314d5deec4551 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 25 May 2020 14:25:20 -0500 Subject: [PATCH] Add missing import. --- britney2/policies/jenkinspass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney2/policies/jenkinspass.py b/britney2/policies/jenkinspass.py index acc48d8..b18633e 100644 --- a/britney2/policies/jenkinspass.py +++ b/britney2/policies/jenkinspass.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import os +from os import getenv, path from jenkinsapi.jenkins import Jenkins from britney2.policies.policy import BasePolicy, PolicyVerdict @@ -30,7 +30,7 @@ class JenkinsPassPolicy(BasePolicy): def __init__(self, options, suite_info): super().__init__("jenkins-pass", options, suite_info, {"unstable"}) - self.filename = os.path.join(options.unstable, "JenkinsPass") + self.filename = path.join(options.unstable, "JenkinsPass") # Authenticate to Jenkins with the given env vars api_site = getenv("API_SITE")