From a2ea04b3099f596f6dff536009c7dec6e47ea48d Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 11:46:59 -0400 Subject: [PATCH] follows up on #1042 to remove smart from uptime script (#1340) (#1397) (cherry picked from commit e16dbd39a56a837f72f870540af073ca06af71a0) Co-authored-by: Don Naro --- examples/scripts/uptime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/scripts/uptime.py b/examples/scripts/uptime.py index d77a5fb5660..38f2be9b1ac 100755 --- a/examples/scripts/uptime.py +++ b/examples/scripts/uptime.py @@ -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