Bug #6111
closed
Listing computer resources via hammer generates and error re: rabl template
Added by Paul Calabro over 10 years ago.
Updated over 6 years ago.
Description
[root@puppetmaster01 bundler.d]# hammer compute-resource list
Cannot find rabl template 'api/v2/compute_resources/xenserver.json' within registered ([]) view paths!
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?
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 :)
Yeah, that sounds easy enough! I'll submit that PR tomorrow! :)
- 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 (
)
- Pull request https://github.com/theforeman/foreman-xen/pull/6 added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/1737)
- Target version changed from 1.7.4 to 1.7.3
- Target version changed from 1.7.3 to 1.7.2
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF