mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00: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:
@@ -53,10 +53,10 @@ class SoftLayerInventory(object):
|
||||
|
||||
if self.args.list:
|
||||
self.get_all_servers()
|
||||
print self.json_format_dict(self.inventory, True)
|
||||
print(self.json_format_dict(self.inventory, True))
|
||||
elif self.args.host:
|
||||
self.get_virtual_servers()
|
||||
print self.json_format_dict(self.inventory["_meta"]["hostvars"][self.args.host], True)
|
||||
print(self.json_format_dict(self.inventory["_meta"]["hostvars"][self.args.host], True))
|
||||
|
||||
def to_safe(self, word):
|
||||
'''Converts 'bad' characters in a string to underscores so they can be used as Ansible groups'''
|
||||
|
||||
Reference in New Issue
Block a user