-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes custom show method from physical_servers_controller
- Loading branch information
Rodney Brown
committed
Mar 23, 2017
1 parent
842fc85
commit 3c72c7e
Showing
1 changed file
with
0 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
module Api | ||
class PhysicalServersController < BaseController | ||
def show | ||
if params[:c_id] | ||
physical_server = PhysicalServer.find(params[:c_id]) | ||
response_payload = physical_server.as_json | ||
response_payload['host_id'] = physical_server.host.try(:id) | ||
|
||
render :json=> response_payload | ||
else | ||
super | ||
end | ||
end | ||
|
||
def server_ident(server) | ||
"Server instance: #{server.id} name:'#{server.name}'" | ||
end | ||
end | ||
end |