Skip to content

Commit

Permalink
variable name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pragatimodi committed May 15, 2023
1 parent 73ec9a9 commit a1d5e86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firebase_admin/project_config_mgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,18 @@ def get_project_config(self) -> ProjectConfig:
else:
return ProjectConfig(body)

def update_project_config(self, multi_factor_config: MultiFactorConfig = None, passwordg_policy_config: PasswordPolicyConfig = None) -> ProjectConfig:
def update_project_config(self, multi_factor_config: MultiFactorConfig = None, password_policy_config: PasswordPolicyConfig = None) -> ProjectConfig:
"""Updates the specified project with the given parameters."""

payload = {}
if multi_factor_config is not None:
if not isinstance(multi_factor_config, MultiFactorConfig):
raise ValueError('multi_factor_config must be of type MultiFactorConfig.')
payload['mfa'] = multi_factor_config.build_server_request()
if passwordg_policy_config is not None:
if not isinstance(passwordg_policy_config, PasswordPolicyConfig):
if password_policy_config is not None:
if not isinstance(password_policy_config, PasswordPolicyConfig):
raise ValueError('password_policy_config must be of type PasswordPolicyConfig.')
payload['passwordPolicyConfig'] = passwordg_policy_config.build_server_request()
payload['passwordPolicyConfig'] = password_policy_config.build_server_request()
if not payload:
raise ValueError(
'At least one parameter must be specified for update.')
Expand Down

0 comments on commit a1d5e86

Please sign in to comment.