if check should be not

This commit is contained in:
Daniel Wallace 2018-01-05 14:41:21 -07:00
parent 239ab765d9
commit 64d7cf165e
No known key found for this signature in database
GPG Key ID: 5FA5E5544F010D48

View File

@ -65,7 +65,7 @@ class RackspaceTest(ShellCase):
region_name = config[profile_str][DRIVER_NAME].get('region_name')
auth = config[profile_str][DRIVER_NAME].get('auth')
cloud = config[profile_str][DRIVER_NAME].get('cloud')
if region_name and (auth or cloud):
if not region_name or not (auth or cloud):
self.skipTest(
'A region_name and (auth or cloud) must be provided to run these '
'tests. Check tests/integration/files/conf/cloud.providers.d/{0}.conf'