Community
Buy or Renew
EN US
Chinese
EN US
French
Japanese
Korean
Portuguese
Spanish
Log In
MENU
CLOSE
Buy or Renew
Log In
EN US
Chinese
EN US
French
Japanese
Korean
Portuguese
Spanish
Cisco + Splunk: It’s a new day for your data. Learn more.
guruprassadn
Level 1
Member since
02-11-2018
07-19-2018
Recent Badges
Awards
User Statistics
1
Posts
1
Solutions
0
Helpful votes Given
1
Helpful votes Received
Recent Badges
See all
Cisco Community
About guruprassadn
Please click
here
to merge your Webex community account with this Cisco.com community account
User Activity
Posts
Replies
No posts to display.
Re: Check for tenant name
02-11-2018
The instance tenant has an object called name. So, your code should basically be like this.tenants = Tenant.get(session) for t in tenants: print t if t.name == 'Production': print "TRUE"I hope this helps.
Community Statistics
Member Since
02-11-2018
08:51 PM
Date Last Visited
07-19-2018
04:25 AM
Posts
1
Total Helpful Votes Received
1
Helpful Votes From
User
Helpful Count
Alex Stevenson
1
See all >