Actions
Bug #6111
closedListing computer resources via hammer generates and error re: rabl template
Description
[root@puppetmaster01 bundler.d]# hammer compute-resource list
Cannot find rabl template 'api/v2/compute_resources/xenserver.json' within registered ([]) view paths!
Updated by Paul Calabro over 10 years ago
This was fixed by doing the following:
touch /usr/share/foreman/app/views/api/v1/compute_resources/xenserver.json.rabl
touch /usr/share/foreman/app/views/api/v2/compute_resources/xenserver.json.rabl
Do we know what's supposed to go in these files?
Updated by Dominic Cleal over 10 years ago
I think just adding attributes :user
is enough so the username used to connect to XenServer is shown in the API response. I can't see anything else required.
Easy PR if you're able to :)
Updated by Paul Calabro over 10 years ago
Yeah, that sounds easy enough! I'll submit that PR tomorrow! :)
Updated by The Foreman Bot about 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.7.4
- Pull request https://github.com/theforeman/foreman/pull/1737 added
- Pull request deleted (
)
Updated by Paul Calabro about 10 years ago
Okay, I've submitted the following PR for this: https://github.com/theforeman/foreman-xen/pull/6
Updated by Anonymous about 10 years ago
- Pull request https://github.com/theforeman/foreman-xen/pull/6 added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/1737)
Updated by Anonymous about 10 years ago
- Target version changed from 1.7.4 to 1.7.3
Updated by Dominic Cleal about 10 years ago
- Target version changed from 1.7.3 to 1.7.2
Updated by Paul Calabro about 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-xen|ea6fe4152144de52c9d7d2235ba292cd156a300e.
Actions