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 | |
3 | def auth_check(auth): | ||||
Tony Mack | 2b3025c | 2013-04-08 15:18:12 -0400 | [diff] [blame] | 4 | client = OpenStackClient(username=auth['Username'], |
Tony Mack | 5f7abe0 | 2013-04-08 15:14:30 -0400 | [diff] [blame] | 5 | password=auth['AuthString'], |
6 | tenant=auth['LoginBase']) | ||||
7 | client.authenticate() | ||||
8 | return client |