provider/openstack: Fix issue with providing OS_IMAGE_ID or OS_IMAGE_NAME when running acceptance tests.

This commit is contained in:
Gavin Williams 2017-05-27 12:59:42 +01:00
parent 60b162de45
commit 3c3c08a0cd
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ func testAccPreCheck(t *testing.T) {
t.Fatal("OS_AUTH_URL must be set for acceptance tests")
}
if OS_IMAGE_ID == "" || OS_IMAGE_NAME == "" {
t.Fatal("OS_IMAGE_ID and OS_IMAGE_NAME must be set for acceptance tests")
if OS_IMAGE_ID == "" && OS_IMAGE_NAME == "" {
t.Fatal("OS_IMAGE_ID or OS_IMAGE_NAME must be set for acceptance tests")
}
if OS_POOL_NAME == "" {