Skip to content

Commit

Permalink
[deploy] Avoid empty lines in aws profiles list (#3387)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Oct 3, 2024
1 parent 631d139 commit f34f053
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 f34f053

Please sign in to comment.