Skip to content

Commit

Permalink
Show the list of authorized domains for organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
John Matherly committed Sep 12, 2018
1 parent 6ad6a51 commit 9edd057
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shodan/cli/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ def info():
click.secho(organization['name'], fg='cyan')
click.secho('Access Level: ', nl=False, dim=True)
click.secho(humanize_api_plan(organization['upgrade_type']), fg='magenta')

if organization['domains']:
click.secho('Authorized Domains: ', nl=False, dim=True)
click.echo(', '.join(organization['domains']))

click.echo('')
click.secho('Administrators:', dim=True)

Expand Down

0 comments on commit 9edd057

Please sign in to comment.