jimbobhickville / python-ambariclient

Python client bindings for the Apache Ambari REST API
44 stars 31 forks source link

Throw exceptions on .wait() when requests fail #6

Closed jimbobhickville closed 9 years ago

jimbobhickville commented 9 years ago

PollableMixin should add an is_error abstract method that subclasses can implement to detect an error in the polled process and abort with an exception. This should be implemented by the Request, Bootstrap, and ClusterHost model classes to account for potential errors.