Skip to content

Commit

Permalink
Do not add fake message when there is no search result.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed May 3, 2022
1 parent d0e02d7 commit 579ffcb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/modules/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,6 @@ def api_extended_query(self):
select = self.api_path.select(*self.extended_query['attributes'])
for row in select:
self.result['message'].append(row)
if len(self.result['message']) < 1:
msg = "no results for '%s 'query' %s" % (' '.join(self.path),
self.module.params['extended_query'])
self.result['message'].append(msg)
self.return_result(False)
except LibRouterosError as e:
self.errors(e)
Expand Down

0 comments on commit 579ffcb

Please sign in to comment.