cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
898
Views
0
Helpful
0
Replies

[acitoolkit] AttributeError: 'Tenant' object has no attribute 'has_event'

aapclark12
Level 1
Level 1

I'm presently going through the acitoolkit docs (https://acitoolkit.readthedocs.io/en/latest/subscriptions.html) and I've worked up to the subscriptions section.   The particular problem that I'm getting is from the Instance subscription example:

bob = Tenant('Bob')

bob.subscribe(session)

while True:

     if bob.has_event(session):

         bobs_event = bob.get_event(session)

         if bobs_event.is_deleted():

             print 'Bob was deleted'

I created a different tenant than bob and changed my script to reflect that.  I verified at the APIC that the tenant was there; but when I go to run the code I get:  AttributeError: 'Tenant' object ahs not attribute 'has_event'.    A quick google search didn't really turn up anything and I don't see a section in the documentation for common errors.  There are also no similar posts here.

0 Replies 0