mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
monit - invoke run_command passing list (#3821)
* monit - invoke run_command passing list * added changelog fragment * fixed unit test * further adjustments * fixed handling of command_args * better handling of command_args
This commit is contained in:
parent
ccb74ffd7c
commit
52d4907480
3 changed files with 10 additions and 7 deletions
|
@ -40,7 +40,7 @@ class MonitTest(unittest.TestCase):
|
|||
with self.assertRaises(AnsibleExitJson):
|
||||
self.monit.stop()
|
||||
self.module.fail_json.assert_not_called()
|
||||
self.module.run_command.assert_called_with('monit stop processX', check_rc=True)
|
||||
self.module.run_command.assert_called_with(['monit', 'stop', 'processX'], check_rc=True)
|
||||
|
||||
def test_change_state_fail(self):
|
||||
with self.patch_status([monit.Status.OK] * 3):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue