Skip to content

Commit

Permalink
Merge pull request #750 from ministryofjustice/ag--comment-kubernetes…
Browse files Browse the repository at this point in the history
…-client-check

Fix for KubernetesClient error when no id_token provided
  • Loading branch information
xoen authored Sep 30, 2019
2 parents ebbe597 + 71e19ca commit 3a432d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions controlpanel/api/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class KubernetesClient:
"""

def __init__(self, id_token=None, use_cpanel_creds=False):
if not use_cpanel_creds and not id_token:
raise ValueError(
"please provide an id_token (preferred) or pass use_cpanel_creds"
"=True (this would cause the use of the host credentials so "
"be careful when using it)"
)
# if not use_cpanel_creds and not id_token:
# raise ValueError(
# "please provide an id_token (preferred) or pass use_cpanel_creds"
# "=True (this would cause the use of the host credentials so "
# "be careful when using it)"
# )

if id_token and use_cpanel_creds:
raise ValueError(
Expand Down

0 comments on commit 3a432d6

Please sign in to comment.