Skip to content

Commit

Permalink
fix int to string for port
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushsonigra committed Feb 19, 2020
1 parent 58b2aae commit 8664acc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# aws_ipadd

Whitelist inbound IP and Port in AWS security group and Manage security group rule with `aws_ipadd` command.

## OS Support

Expand Down
2 changes: 1 addition & 1 deletion aws_ipadd
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ except ClientError as e:
try:
security_group_rule = [security_group_rule for security_group_rule in security_group_rules if security_group_rule['FromPort'] == port]
except Exception as e:
print("No rules exist for " + port + ".")
print("No rules exist for {}.".format(port))
sys.exit()

if len(security_group_rule) == 0:
Expand Down

0 comments on commit 8664acc

Please sign in to comment.