1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix incorrect default value for shutdown_command (#44607)

This commit is contained in:
Chris Coley 2018-08-24 06:51:14 -07:00 committed by Sam Doran
parent 5d5782ce9d
commit ce5530e08d

View file

@ -71,7 +71,7 @@ class ActionModule(ActionBase):
uname_result = self._low_level_execute_command('uname')
distribution = uname_result['stdout'].strip().lower()
shutdown_command = self.SHUTDOWN_COMMANDS.get(distribution, self.SHUTDOWN_COMMAND_ARGS['linux'])
shutdown_command = self.SHUTDOWN_COMMANDS.get(distribution, self.SHUTDOWN_COMMANDS['linux'])
shutdown_command_args = self.SHUTDOWN_COMMAND_ARGS.get(distribution, self.SHUTDOWN_COMMAND_ARGS['linux'])
pre_reboot_delay = int(self._task.args.get('pre_reboot_delay', self.DEFAULT_PRE_REBOOT_DELAY))