Update examples/scripts/uptime.py (#74438)
Fixes missing parameter 'verbosity' Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
fcbf5c3185
commit
39a49963b5
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def main():
|
||||||
host_list = ['localhost', 'www.example.com', 'www.google.com']
|
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
|
# 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(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
|
# required for
|
||||||
# https://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/manager.py#L204
|
# https://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/manager.py#L204
|
||||||
sources = ','.join(host_list)
|
sources = ','.join(host_list)
|
||||||
|
|
Loading…
Reference in a new issue