Class: OpenstackProcess

Inherits:
Object
  • Object
show all
Defined in:
lib/providers/openstack/openstack_process.rb

Overview

Specific openstack process added to the application process.

Instance Method Summary collapse

Instance Method Details

#openstack_get_tenant(sObjectType, hParams) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/providers/openstack/openstack_process.rb', line 19

def openstack_get_tenant(sObjectType, hParams)
  tenant_name = hParams[:tenant]
  query = { :name => tenant_name }
  PrcLib.state("searching for tenant '%s'", tenant_name)
  list = query_single(sObjectType, query, tenant_name)
  return list[0] if list.length > 0
end