Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 210 Bytes
from fabulous import *
import json
try:
f = open("%s/hosts.json" % file_path, 'r')
env.hosts = [str(x) for x in json.loads(f.read())['hosts']]
f.close()
print 'loaded'
except IOError:
env.hosts = []