From b05634f5b0677543f3cd3ae4ecfd658e2d596f0b Mon Sep 17 00:00:00 2001 From: apurvaraghu <100869315+apurvaraghu@users.noreply.github.com> Date: Thu, 21 Dec 2023 05:25:52 -0800 Subject: [PATCH] implement action:shutdown in vmhost devices --- .../juniper/device/plugins/modules/system.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible_collections/juniper/device/plugins/modules/system.py b/ansible_collections/juniper/device/plugins/modules/system.py index b8aa3c86..2d395a2b 100644 --- a/ansible_collections/juniper/device/plugins/modules/system.py +++ b/ansible_collections/juniper/device/plugins/modules/system.py @@ -39,7 +39,7 @@ DOCUMENTATION = ''' --- -extends_documentation_fragment: +extends_documentation_fragment: - juniper_junos_common.connection_documentation - juniper_junos_common.logging_documentation module: system @@ -81,7 +81,7 @@ - power_off at: description: - - The time at which to shutdown, halt, or reboot the system. + - The time at which to shutdown, halt, or reboot the system. - > The value may be specified in one of the following ways: - B(now) - The action takes effect immediately. @@ -353,7 +353,7 @@ def main(): if action == 'reboot': got = junos_module.sw.reboot(in_min, at, all_re, None, vmhost, other_re) elif action == 'shutdown': - got = junos_module.sw.poweroff(in_min, at, None, all_re, other_re) + got = junos_module.sw.poweroff(in_min, at, None, all_re, other_re, vmhost) elif action == 'halt': got = junos_module.sw.halt(in_min, at, all_re, other_re) elif action == 'zeroize':