From 622319d5b1b070505afc53e94b1da23b9c9a1d7e Mon Sep 17 00:00:00 2001 From: Ian Coffey Date: Wed, 17 Sep 2014 10:40:43 -0400 Subject: [PATCH] fix unit create --- lib/fleet_api/requests/create_unit.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fleet_api/requests/create_unit.rb b/lib/fleet_api/requests/create_unit.rb index eb95aca..7c25054 100644 --- a/lib/fleet_api/requests/create_unit.rb +++ b/lib/fleet_api/requests/create_unit.rb @@ -1,10 +1,12 @@ class FleetAPI::Client class Real def create_unit(params={}) + name = params["name"] + request( :body => params, :method => 'PUT', - :path => "v1-alpha/units", + :path => "v1-alpha/units/#{name}", ) end end