# File lib/fog/identity/openstack/v2/models/ec2_credentials.rb, line 22 def create(attributes = {}) if user attributes[:user_id] ||= user.id attributes[:tenant_id] ||= user.tenant_id end super attributes end