mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-10 11:11:29 -07:00
Pluribus Networks modules handling empty output (#54971)
* Handling empty output string * Change log fragment for PR 54971
This commit is contained in:
parent
5f8342bc4c
commit
19c87d829f
14 changed files with 54 additions and 30 deletions
|
@ -133,7 +133,8 @@ def check_cli(module, cli):
|
|||
cli += ' role-show format name no-show-headers'
|
||||
out = run_commands(module, cli)[1]
|
||||
|
||||
out = out.split()
|
||||
if out:
|
||||
out = out.split()
|
||||
|
||||
return True if role_name in out else False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue