Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Commit

Permalink
updating code per iss #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Armen Martirosyan committed May 11, 2017
1 parent 5d98d22 commit 6299398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LM-4502/03-python/apic_em_code_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_device_id(token, url):
# Iterate over the response and find first device with access role.
# Return ID number of the first device matching the criteria
for item in response['response']:
if item['role'] == 'ACCESS':
if item['role'] == 'ACCESS' and not item['family'] == 'Unified AP':
return item['id']


Expand Down
2 changes: 1 addition & 1 deletion LM-4502/03-python/apic_em_code_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_device_id(token, url):
# Iterate over the response and find first device with access role.
# Return ID number of the first device matching the criteria
for item in response['response']:
if item['role'] == 'ACCESS':
if item['role'] == 'ACCESS' and not item['family'] == 'Unified AP':
return item['id']


Expand Down

0 comments on commit 6299398

Please sign in to comment.