[ https://issues.apache.org/jira/browse/AMBARI-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Onischuk updated AMBARI-3082:
------------------------------------
Attachment: AMBARI-3082.patch
> Ambari-Client Some bad api calls does not raise exceptions
> ----------------------------------------------------------
>
> Key: AMBARI-3082
> URL: https://issues.apache.org/jira/browse/AMBARI-3082
> Project: Ambari
> Issue Type: Task
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Attachments: AMBARI-3082.patch
>
>
> E.g:
> Let's execute create_host on the host dev05.hortonworks.com, which is not registered:
> {code}
> hosts.create_host(client, 'dev05.hortonworks.com', '192.168.56.105')
> {code}
> We will the this errorcode after calling the api call, but no exception is raised
> {code}
> {
> "status" : 400,
> "message" : "Attempted to add unknown hosts to a cluster. These hosts have not been
registered with the server: dev05.hortonworks.com"
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|