Pluribus Networks modules handling empty output (#54971)

* Handling empty output string
* Change log fragment for PR 54971
This commit is contained in:
rajaspachipulusu17 2019-04-22 14:57:47 +05:30 committed by Sumit Jaiswal
parent 5f8342bc4c
commit 19c87d829f
14 changed files with 54 additions and 30 deletions

View file

@ -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