Skip to content

Commit

Permalink
implement action:shutdown in vmhost devices
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvaraghu authored Dec 21, 2023
1 parent cedb09c commit b05634f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible_collections/juniper/device/plugins/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

DOCUMENTATION = '''
---
extends_documentation_fragment:
extends_documentation_fragment:
- juniper_junos_common.connection_documentation
- juniper_junos_common.logging_documentation
module: system
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit b05634f

Please sign in to comment.