Skip to content

Commit

Permalink
Fix list_verified to sort addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoulter committed Oct 3, 2011
1 parent db08b7d commit 1bcfe21
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions postman/__main__.py
Expand Up @@ -47,21 +47,17 @@ def cmd_verify(args):
out("Verification for %s sent." % email, args)


def cmd_list_verified(args):
def cmd_list_verified(_args):
ses = boto.connect_ses()
args.verbose = True

addresses = ses.list_verified_email_addresses()
addresses = addresses["ListVerifiedEmailAddressesResponse"]
addresses = addresses["ListVerifiedEmailAddressesResult"]
addresses = addresses["VerifiedEmailAddresses"]

if not addresses:
out("No addresses are verified on this account.", args)
print("No addresses are verified on this account.")
return

for address in addresses:
out(address, args)
for address in sorted(addresses):
print(address)


def cmd_show_quota(args):
Expand Down

0 comments on commit 1bcfe21

Please sign in to comment.