Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
frostyfan109 committed May 30, 2024
1 parent 8f308a8 commit 66f6edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appstore/api/v1/k8s_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_autogen_password(self, course_name: str, onyen: str) -> str:
current_namespace = self.get_current_namespace()
secret_name = self._compute_credential_secret_name(course_name, onyen)
secret = self.api_instance.read_namespaced_secret(secret_name, current_namespace)
return base64.decode(secret.data["password"]).decode("utf-8")
return base64.b64decode(secret.data["password"]).decode("utf-8")

@staticmethod
def _compute_credential_secret_name(course_name: str, onyen: str) -> str:
Expand Down

0 comments on commit 66f6edf

Please sign in to comment.