Tony Mack | 2b3025c | 2013-04-08 15:18:12 -0400 | [diff] [blame] | 1 | from plstackapi.openstack.client import OpenStackClient |
Tony Mack | 5f7abe0 | 2013-04-08 15:14:30 -0400 | [diff] [blame] | 2 | |
Tony Mack | 7974861 | 2013-05-01 14:52:03 -0400 | [diff] [blame] | 3 | def auth_check(username, password, tenant): |
4 | client = OpenStackClient(username=username, | ||||
5 | password=password, | ||||
6 | tenant=tenant) | ||||
Tony Mack | 5f7abe0 | 2013-04-08 15:14:30 -0400 | [diff] [blame] | 7 | client.authenticate() |
8 | return client |