Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help to parse device list #24

Closed
thefossgeek opened this issue Sep 27, 2019 · 1 comment
Closed

Help to parse device list #24

thefossgeek opened this issue Sep 27, 2019 · 1 comment

Comments

@thefossgeek
Copy link

Hi All,

I am using the this script: https://pastebin.com/K9KBeqYL to get device list and trying to print device name and id but I am not able to manage print it. can some one through some light on how to print device name and id like below:

devicename1 10
devicename2 11
devicename3 12

@thefossgeek
Copy link
Author

Please ignore it, I was able to figure out it.

for dev in devlist:
print (dev.name, dev.id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant