Skip to content

Commit

Permalink
Converting static method to class method
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Durgbuns <[email protected]>
  • Loading branch information
shivamdurgbuns committed Nov 7, 2024
1 parent 77f8448 commit fd7bce2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ocs_ci/utility/kms.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ def __init__(self):
self.vault_kube_auth_namespace = None
self.vault_cwd_kms_sa_name = constants.VAULT_CWD_KMS_SA_NAME

@staticmethod
def set_vault_token():
@classmethod
def set_vault_token(cls):
"""
This is a static method fucntion that will set the token value.
This is a class method that will set the token value.
"""
if Vault.vault_path_token is None:
Vault.vault_path_token = Vault.generate_vault_token()
return Vault.vault_path_token
if cls.vault_path_token is None:
cls.vault_path_token = cls.generate_vault_token()
return cls.vault_path_token

def deploy(self):
"""
Expand Down

0 comments on commit fd7bce2

Please sign in to comment.