lib/kaname/adapter/real.rb in kaname-0.1.5 vs lib/kaname/adapter/real.rb in kaname-0.1.6

- old
+ new

@@ -6,11 +6,11 @@ {"id" => user.id, "name" => user.name} end def create_user(name, email) password = Kaname::Generator.password - puts "#{user},#{password}" - response = Fog::Identity[:openstack].create_user(resource[0], password, diff[2]['email']) + puts "#{name},#{password}" + response = Fog::Identity[:openstack].create_user(name, password, email) response.data[:body]["user"] end def create_user_role(tenant_name, user_hash, role_name) tenant = Kaname::Resource.tenants.find{|t| t.name == tenant_name}