Skip to content

Commit

Permalink
follows up on #1042 to remove smart from uptime script (#1340) (#1398)
Browse files Browse the repository at this point in the history
(cherry picked from commit e16dbd3)

Co-authored-by: Don Naro <[email protected]>
  • Loading branch information
patchback[bot] and oraNod authored May 6, 2024
1 parent d1eed14 commit 7bbadd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scripts/uptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def v2_runner_on_failed(self, result, *args, **kwargs):
def main():
host_list = ['localhost', 'www.example.com', 'www.google.com']
# since the API is constructed for CLI it expects certain options to always be set in the context object
context.CLIARGS = ImmutableDict(connection='smart', module_path=['/to/mymodules', '/usr/share/ansible'], forks=10, become=None,
context.CLIARGS = ImmutableDict(module_path=['/to/mymodules', '/usr/share/ansible'], forks=10, become=None,
become_method=None, become_user=None, check=False, diff=False, verbosity=0)
# required for
# https://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/manager.py#L204
Expand Down

0 comments on commit 7bbadd6

Please sign in to comment.