Skip to content

Instantly share code, notes, and snippets.

@cinek810
Last active May 13, 2019 14:49
Show Gist options
  • Save cinek810/dcae61a64a72df47044d9872ebd8f3e1 to your computer and use it in GitHub Desktop.
Save cinek810/dcae61a64a72df47044d9872ebd8f3e1 to your computer and use it in GitHub Desktop.
Debug version of load.py - strange ansible issue
@staticmethod
def load(data, variable_manager=None, loader=None):
print(data['hosts'])
if ('name' not in data or data['name'] is None) and 'hosts' in data:
if isinstance(data['hosts'], list):
data['name'] = ','.join(data['hosts'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment