Skip to content

Commit

Permalink
Merge pull request #172 from aufi/skip_disabled_tenants
Browse files Browse the repository at this point in the history
Skip disabled tenants when connecting to OpenStack
(cherry picked from commit e98c61d1a6cd585d499702800e32d97c6dfe1924)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531121
  • Loading branch information
mansam authored and simaishi committed Jan 4, 2018
1 parent 59a32a6 commit 7fa291e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gems/pending/openstack/openstack_handle/handle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,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 7fa291e

Please sign in to comment.