mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Actually check for equality on empty commands array (#25308)
This commit is contained in:
@@ -74,7 +74,7 @@ class TestVyosModule(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:
|
||||
|
||||
Reference in New Issue
Block a user