Method: OpenStack::Keystone::Public::Auth#initialize
- Defined in:
- lib/open_stack/keystone/public/auth.rb
#initialize(attributes = {}, persisted = false) ⇒ Auth
:notnew:
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/open_stack/keystone/public/auth.rb', line 39 def initialize(attributes = {}, persisted = false) # :notnew: attributes[:username] ||= "" attributes[:password] ||= "" if attributes[:tenant].present? attributes[:tenant_id] = attributes[:tenant].id elsif attributes[:tenant_id].present? attributes[:tenant_id] = attributes[:tenant_id] end super(attributes, persisted) end |