Skip to content

Commit

Permalink
[maykinmedia/objects-api#481] Add warning if list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 13, 2024
1 parent f3f44d2 commit 18ec10e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/objecttypes/setup_configuration/steps/token_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class TokenAuthConfigurationStep(
config_model = TokenAuthGroupConfigurationModel

def execute(self, model: TokenAuthGroupConfigurationModel) -> None:
if len(model.items) == 0:
logger.warning("No tokens provided for configuration")

for item in model.items:
logger.info(f"Configuring {item.identifier}")

Expand Down

0 comments on commit 18ec10e

Please sign in to comment.