CiscoDevNet / devnet-express-cc-issues

Suggested changes to the content of the learning labs for Devnet Express for Cloud Collab
MIT License
0 stars 0 forks source link

Participants are receiving AssertionErrors or TypeErrors in "Exploring the 'ciscosparkapi' Python Library" Step 3 #16

Closed cmlccie closed 6 years ago

cmlccie commented 6 years ago

Exploring the 'ciscosparkapi' Python Library | Step 3

Issue: Users recieve either an AssertionError or TypeError (depending upon the version of the ciscosparkapi package they are using), when they run the following line of code:

>>> api.memberships.create(room, personEmail="USER2@EMAIL.COM")

Fix: The room.id should be passed to the .memberships.create() method, not the room object itself.

The instruction should look like this:

>>> api.memberships.create(room.id, personEmail="USER2@EMAIL.COM")

A three-character fix! 😎

cmlccie commented 6 years ago

I am in process of submitting a Pull Request for this fix, along with a number of edits to this lab.

cmlccie commented 6 years ago

I have confirmed the changes have been pushed to production and are live at learninglabs.cisco.com. -Thank You!