Method: Fog::Identity::OpenStack::Ec2Credentials#create
- Defined in:
- lib/fog/openstack/models/identity/ec2_credentials.rb
#create(attributes = {}) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/fog/openstack/models/identity/ec2_credentials.rb', line 20 def create(attributes = {}) if user then attributes[:user_id] ||= user.id attributes[:tenant_id] ||= user.tenant_id end super attributes end |