> Hi
>
> I'm trying to update a hostgroup via curl, it looks like the auth
> parameter are not read by foreman. I tried same with python requests and
> got the same error.
>
> Any hint ?
>
> Regards
> Axel
>
> curl -v -k -H "Content-Type: application/json" -X PUT --data @test.json -u
> myuser:mypasswd -L https://puppet.mydomain.net/foreman/hostgroups/102/
yes, you are missing a header - -H 'Accept: application/json'
Ohad
···
On Wed, Jan 9, 2013 at 1:51 PM, axelt wrote:curl ended up with
Maximum (50) redirects followedforeman log tells me:
Processing HostgroupsController#update (for 10.129.59.53 at 2013-01-09
12:46:49) [PUT]
Parameters: {“id”=>“102”, “controller”=>“hostgroups”,
“action”=>“update”,
“hostgroup”=>{“parameters”=>{“apit_java_version”=>“1.7.1”, “
apit_appl_version”=>“u’0.0.1’”}}}
Redirected to https://puppet.mydomain.net/foreman/users/login
Filter chain halted as [:require_login] rendered_or_redirected.
Completed in 3ms (DB: 1) | 302 Found [
https://puppet.mydomain.net/foreman/hostgroups/102/]Processing UsersController#update (for 10.129.59.53 at 2013-01-09
12:46:37) [PUT]
Parameters: {“id”=>“login”, “controller”=>“users”, “action”=>“update”}
Redirected to https://puppet.mydomain.net/foreman/users/login
Filter chain halted as [:require_login] rendered_or_redirected.
Completed in 2ms (DB: 1) | 302 Found [
https://puppet.mydomain.net/foreman/users/login]
…–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/Nw5fQygPlCQJ.
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.