mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 03:20:19 +08:00
make the errors component of the info response only appear if there IS an error + make the integration test check for the proper error returns
This commit is contained in:
@@ -435,8 +435,9 @@ def get_queue_state(queue_ids=None, limit=None, path=DEFAULT_QUEUE_PATH):
|
||||
state += rows
|
||||
|
||||
for row in state:
|
||||
row['errors'] = queue_get_error_msgs(row['type'], row['fqu'], path=path)
|
||||
|
||||
errors = queue_get_error_msgs(row['type'], row['fqu'], path=path)
|
||||
if len(errors) > 0:
|
||||
row['errors'] = errors
|
||||
return state
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user