Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Add the app name to the bulk API response.
Browse files Browse the repository at this point in the history
Specs are green.
  • Loading branch information
Andrea Campi committed Feb 16, 2013
1 parent 5aa5515 commit 824fd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_controller/app/controllers/bulk_controller.rb
Expand Up @@ -59,7 +59,7 @@ def hash_apps_by_id(arr)


def hashify_app(app) def hashify_app(app)
h = {} h = {}
[:id, :instances, :state, :framework, :runtime, :memory, :package_state, :updated_at [:id, :name, :instances, :state, :framework, :runtime, :memory, :package_state, :updated_at
].each {|field| h[field] = app.send(field) } ].each {|field| h[field] = app.send(field) }


h[:version] = app.generate_version h[:version] = app.generate_version
Expand Down

0 comments on commit 824fd2a

Please sign in to comment.