Revision 630061d2
Added by Michael Moll almost 6 years ago
app/models/compute_resources/foreman/model/openstack.rb | ||
---|---|---|
|
||
def tenants
|
||
if url =~ /\/v3\/auth\/tokens/
|
||
user_id = identity_client.current_user_id
|
||
user_id = identity_client.current_user_id
|
||
identity_client.list_user_projects(user_id).body["projects"].map { |p| Fog::Identity::OpenStack::V3::Project.new(p) }
|
||
else
|
||
client.tenants
|
Also available in: Unified diff
Fixes #19775 - Fix Layout/ExtraSpacing cop