Skip to content

Commit 85b9ed1

Browse files
Update Tests/kaas/plugin/plugin_cluster_stacks.py
Co-authored-by: Matthias Büchse <[email protected]> Signed-off-by: Michal Gubricky <[email protected]>
1 parent f880dfe commit 85b9ed1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/kaas/plugin/plugin_cluster_stacks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ def setup_git_env(self):
211211
})
212212

213213
git_access_token = os.getenv('GIT_ACCESS_TOKEN')
214-
if git_access_token:
215-
os.environ['GIT_ACCESS_TOKEN_B64'] = base64.b64encode(git_access_token.encode()).decode('utf-8')
216-
else:
214+
if not git_access_token:
217215
raise ValueError("GIT_ACCESS_TOKEN environment variable not set.")
216+
os.environ['GIT_ACCESS_TOKEN_B64'] = base64.b64encode(git_access_token.encode()).decode('utf-8')
218217

219218

220219
class PluginClusterStacks(KubernetesClusterPlugin):

0 commit comments

Comments
 (0)