mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07:00
Actually check for equality on empty commands array (#25308)
This commit is contained in:
parent
0133a5a763
commit
f52dcef7ba
7 changed files with 8 additions and 10 deletions
|
@ -75,7 +75,7 @@ class TestIosxrModule(unittest.TestCase):
|
|||
result = self.changed(changed)
|
||||
self.assertEqual(result['changed'], changed, result)
|
||||
|
||||
if commands:
|
||||
if commands is not None:
|
||||
if sort:
|
||||
self.assertEqual(sorted(commands), sorted(result['commands']), result['commands'])
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue