Skip to content

Bug in organizations support  #19

@alexandrezia

Description

@alexandrezia

Using php-chef with organizations, not all url endpoints must have /organizations/organization_name,
If you try to check server status
https://docs.chef.io/api_chef_server.html#status
It must be done using http://server/_status
But php-chef is using
http://server/organizations/org_name/_status
which causes an error.

To reproduce, just test as:

$chef = new Jenssegers\Chef\Chef(https://chef_server/organizations/my_organization", 'my_username', 'key_path', "12.0.1", TRUE);
 $chef->get('/_status');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions