Skip to content

Commit

Permalink
Skip disabled tenants when connecting to OpenStack
Browse files Browse the repository at this point in the history
Attempts to connect with disabled tenants generated misleading error messages,
skipping disabled tenants when obtaining connection to OpenStack.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1518625
  • Loading branch information
aufi committed Dec 4, 2017
1 parent 14fd2f9 commit 9591e89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ def accessible_tenants
# the "services" tenant is a special tenant in openstack reserved
# specifically for the various services
next if t.name == "services"
tenant_accessible?(t.name)
# disabled and non-accessible tenants are skipped
t.enabled && tenant_accessible?(t.name)
end
end

Expand Down

0 comments on commit 9591e89

Please sign in to comment.