Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

[root@puppetmaster01 bundler.d]# hammer compute-resource list

Cannot find rabl template 'api/v2/compute_resources/xenserver.json' within registered ([]) view paths!
Actions #1

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?

Actions #2

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 :)

Actions #3

Updated by Paul Calabro over 10 years ago

Yeah, that sounds easy enough! I'll submit that PR tomorrow! :)

Actions #4

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 ()
Actions #5

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

Actions #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)
Actions #7

Updated by Anonymous about 10 years ago

  • Target version changed from 1.7.4 to 1.7.3
Actions #8

Updated by Dominic Cleal about 10 years ago

  • Target version changed from 1.7.3 to 1.7.2
Actions #9

Updated by Paul Calabro about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF