Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pragatimodi committed May 15, 2023
1 parent 8539a96 commit 6c7ef49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions firebase_admin/tenant_mgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def multi_factor_config(self):
if data is not None:
return multi_factor_config_mgt.MultiFactorServerConfig(data)
return None

@property
def password_policy_config(self):
data = self._data.get('passwordPolicyConfig', None)
Expand Down Expand Up @@ -334,7 +334,8 @@ def create_tenant(
'multi_factor_config must be of type MultiFactorConfig.')
payload['mfaConfig'] = multi_factor_config.build_server_request()
if password_policy_config is not None:
if not isinstance(password_policy_config, password_policy_config_mgt.PasswordPolicyConfig):
if not isinstance(password_policy_config,
password_policy_config_mgt.PasswordPolicyConfig):
raise ValueError(
'password_policy_config must be of type PasswordPolicyConfig.')
payload['passwordPolicyConfig'] = password_policy_config.build_server_request()
Expand Down Expand Up @@ -372,7 +373,8 @@ def update_tenant(
raise ValueError('multi_factor_config must be of type MultiFactorConfig.')
payload['mfaConfig'] = multi_factor_config.build_server_request()
if password_policy_config is not None:
if not isinstance(password_policy_config, password_policy_config_mgt.PasswordPolicyConfig):
if not isinstance(password_policy_config,
password_policy_config_mgt.PasswordPolicyConfig):
raise ValueError(
'password_policy_config must be of type PasswordPolicyConfig.')
payload['passwordPolicyConfig'] = password_policy_config.build_server_request()
Expand Down

0 comments on commit 6c7ef49

Please sign in to comment.