Skip to content

Commit

Permalink
Add server_info.release
Browse files Browse the repository at this point in the history
  • Loading branch information
simaishi committed Jul 20, 2019
1 parent d62e4b5 commit ee7e057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/api/api_controller.rb
Expand Up @@ -64,6 +64,7 @@ def server_info
{
:version => Vmdb::Appliance.VERSION,
:build => Vmdb::Appliance.BUILD,
:release => Vmdb::Appliance.RELEASE,
:appliance => MiqServer.my_server.name,
:time => Time.now.utc.iso8601,
:server_href => "#{@req.api_prefix}/servers/#{MiqServer.my_server.id}",
Expand Down
1 change: 1 addition & 0 deletions spec/requests/entrypoint_spec.rb
Expand Up @@ -47,6 +47,7 @@
"server_info" => a_hash_including(
"version" => Vmdb::Appliance.VERSION,
"build" => Vmdb::Appliance.BUILD,
"release" => Vmdb::Appliance.RELEASE,
"appliance" => MiqServer.my_server.name,
"time" => "2018-01-01T00:00:00Z",
"server_href" => api_server_url(nil, MiqServer.my_server),
Expand Down

0 comments on commit ee7e057

Please sign in to comment.