# 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