mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Use print() as function under contrib/
This fixes the remaining Python 3 syntax errors, so re-enable compileall for contrib/ again.
This commit is contained in:
parent
aa5f96d28d
commit
3f9879aedb
28 changed files with 105 additions and 96 deletions
|
@ -41,7 +41,7 @@ def list_groups(api):
|
|||
|
||||
inventory['_meta'] = {'hostvars': hostvars}
|
||||
inv_string = json.dumps(inventory, indent=1, sort_keys=True)
|
||||
print inv_string
|
||||
print(inv_string)
|
||||
|
||||
return None
|
||||
|
||||
|
@ -69,7 +69,7 @@ def print_host(host):
|
|||
This function expects one string, this hostname to lookup variables for.
|
||||
'''
|
||||
|
||||
print json.dumps({})
|
||||
print(json.dumps({}))
|
||||
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue