diff --git a/docs/API.md b/docs/API.md index 3afcfc2..b4675ed 100644 --- a/docs/API.md +++ b/docs/API.md @@ -815,6 +815,7 @@ An authentication token is required in order to request instances on demand when Responses: * 201 - Provisioning request accepted +* 400 - Payload contains invalid JSON and cannot be parsed * 403 - Request exceeds the configured per pool maximum * 404 - A pool was requested, which is not available in the running configuration, or an unknown error occurred. * 409 - A request of the matching ID has already been created diff --git a/lib/vmpooler/api/v1.rb b/lib/vmpooler/api/v1.rb index fe3e2f1..966e6a7 100644 --- a/lib/vmpooler/api/v1.rb +++ b/lib/vmpooler/api/v1.rb @@ -956,7 +956,6 @@ module Vmpooler result['domain'] = config['domain'] if config['domain'] status 200 elsif request_hash['status'] == 'failed' - result['ready'] = false result['message'] = "The request failed to provision instances within the configured ondemand_request_ttl '#{config['ondemand_request_ttl']}'" status 200 elsif request_hash['status'] == 'deleted'