Ask Your Question
0

method to get keypair names

asked 2015-11-16 20:16:37 -0500

John Zhao gravatar image

novaclient.keypairs.list() return a list of keypairs object. However, I could not find a method to get the names of the keypairs.

Can someone help?

Thanks,

John

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-17 21:33:53 -0500

John Zhao gravatar image

I figured it out. Name is an attribute of keypair class, so you can get the name with myKey.name.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-16 20:16:37 -0500

Seen: 139 times

Last updated: Nov 17 '15