Skip to content

Instantly share code, notes, and snippets.

@larsks
Last active January 19, 2016 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsks/839fde2c08c8c81ccf2b to your computer and use it in GitHub Desktop.
Save larsks/839fde2c08c8c81ccf2b to your computer and use it in GitHub Desktop.
>>> import os
>>> from novaclient import client
>>> c = client.Client(2, os.environ['OS_USERNAME'], os.environ['OS_PASSWORD'], os.environ['OS_TENANT_NAME'], auth_url=os.environ['OS_AUTH_URL'])
>>> c.keypairs.list()
[<Keypair: lars>, <Keypair: lars-jenkins>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment