Siobhan Tully | 30fd429 | 2013-05-10 08:59:56 -0400 | [diff] [blame^] | 1 | from 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 |