Skip to content

Commit

Permalink
Avoid empty lines in aws profiles list
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 1, 2024
1 parent 6bbfc5b commit 3bae24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/scripts/aws_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def list_aws_profiles() -> List[str]:
aws_ver = aws_version()
if aws_ver is not None and aws_ver == 2:
result = run_cmd(["aws", "configure", "list-profiles"], chomp=True)
return result.stdout.split("\n")
return [profile for profile in result.stdout.split("\n") if profile]
return []


Expand Down

0 comments on commit 3bae24a

Please sign in to comment.