Skip to content

Commit

Permalink
fix unit create
Browse files Browse the repository at this point in the history
  • Loading branch information
iancoffey committed Sep 17, 2014
1 parent d90c652 commit 622319d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fleet_api/requests/create_unit.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 622319d

Please sign in to comment.