Ask Your Question
0

method to get keypair names

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

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 -0600

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 162 times

Last updated: Nov 17 '15