blob: 4054da65868a30e9f0b3b4f2567f1e6167c2a925 [file] [log] [blame]
Tony Mack2b3025c2013-04-08 15:18:12 -04001from plstackapi.openstack.client import OpenStackClient
Tony Mack5f7abe02013-04-08 15:14:30 -04002
3def auth_check(auth):
Tony Mack2b3025c2013-04-08 15:18:12 -04004 client = OpenStackClient(username=auth['Username'],
Tony Mack5f7abe02013-04-08 15:14:30 -04005 password=auth['AuthString'],
6 tenant=auth['LoginBase'])
7 client.authenticate()
8 return client