default play name to hosts entry

return to previous behaviour as now the name was left blank
pull/14666/head
Brian Coca 9 years ago
parent 064cdec6ff
commit 2d56293768

@ -105,6 +105,8 @@ class Play(Base, Taggable, Become):
@staticmethod
def load(data, variable_manager=None, loader=None):
if ('name' not in data or data['name'] is None) and 'hosts' in data:
data['name'] = data['hosts']
p = Play()
return p.load_data(data, variable_manager=variable_manager, loader=loader)

Loading…
Cancel
Save