Sha256: fd6208fec34202bcb4c5b51293c10e4aec50835f2301c14c28922be87150966b

Contents?: true

Size: 367 Bytes

Versions: 35

Compression:

Stored size: 367 Bytes

Contents

class OpenStack
  module Identity
    def self.get_tenant_id
      identity = Fog::Identity[:openstack]
      ENV['OPENSTACK_TENANT_NAME'] || identity.list_tenants.body['tenants'].first['id']
    end

    def self.get_user_id
      identity = Fog::Identity[:openstack]
      ENV['OPENSTACK_USER_ID'] || identity.list_users.body['users'].first['id']
    end
  end
end

Version data entries

35 entries across 35 versions & 5 rubygems

Version Path
fog-1.26.0 tests/openstack/requests/identity/helper.rb
fog-1.25.0 tests/openstack/requests/identity/helper.rb
nsidc-fog-1.24.1 tests/openstack/requests/identity/helper.rb
fog-1.24.0 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.11 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.10 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.9 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.8 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.7 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.6 tests/openstack/requests/identity/helper.rb
fog-1.23.0 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.4 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.3 tests/openstack/requests/identity/helper.rb
ns-fog-1.22.2 tests/openstack/requests/identity/helper.rb
fog-1.22.1 tests/openstack/requests/identity/helper.rb