It strikes me as odd, even though it is probably right, that you have:
"environment_id": 2,
and
"environment": {
"environment": {
"name": "lab2",
"id": 2
}
Ohad should be able to sort it out. (It seems non-intuitive in a coule
of different ways.)
-Brian
···
On Wed, Feb 29, 2012 at 11:48 AM, Gustavo Soares wrote:Hi!!
I am evaluating foreman’s rest api for a particular project.
Right now, I am trying to update a host’s environment.
The rails log returns:
…
Environment(#2197164940) expected, got HashWithIndifferentAccess(#
2156390820)
…The command line used along with the data is here:
https://gist.github.com/1942360Any ideas?
Gus
–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.
–
http://aws.amazon.com/solutions/solution-providers/brandorr/