Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2021-04-27 18:27:55 +0300
committerGitHub <noreply@github.com>2021-04-27 18:27:55 +0300
commit39a49963b5a6652a3d4eaed146dfafe869346457 (patch)
treed0c02149d8d4b9866658f3c5aa051daa84a071d2 /examples
parentfcbf5c31851cced6a82a27d7d0b489551e325385 (diff)
Update examples/scripts/uptime.py (#74438)
Fixes missing parameter 'verbosity' Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/scripts/uptime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scripts/uptime.py b/examples/scripts/uptime.py
index d2cb3b0c52a..d77a5fb5660 100755
--- a/examples/scripts/uptime.py
+++ b/examples/scripts/uptime.py
@@ -54,7 +54,7 @@ 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,
- become_method=None, become_user=None, check=False, diff=False)
+ 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
sources = ','.join(host_list)