lib/onering/api.rb in onering-client-0.0.43 vs lib/onering/api.rb in onering-client-0.0.44

- old
+ new

@@ -112,10 +112,10 @@ # attempt to autoregister clients from least specific to most (machine account then user account) clients.each do |client| # determine if we can create this client client[:path] = (File.expand_path(client[:path]) rescue client[:path]) next unless File.writable?(File.dirname(client[:path])) - File.mkdir(client[:path]) unless File.directory?(client[:path]) + Dir.mkdir(client[:path]) unless File.directory?(client[:path]) next unless File.writable?(client[:path]) begin response = @rest["/api/users/#{client[:name]}/keys/#{client[:keyname]}"].get({ :params => {