Skip to content

Commit

Permalink
follows up on #1042 to remove smart from uptime script
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Apr 25, 2024
1 parent 87886f1 commit b3e077d
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 b3e077d

Please sign in to comment.