diff options
Diffstat (limited to 'src/flufig.py')
-rwxr-xr-x | src/flufig.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/flufig.py b/src/flufig.py index e326f08..b79fd6a 100755 --- a/src/flufig.py +++ b/src/flufig.py @@ -55,10 +55,13 @@ for streamer in config['streamer']: found = False for machine in config['globals']['machines'].keys(): if worker in config['globals']['machines'][machine]: - if machine in machines and 'porter' in machines[machine]: - if port in machines[machine]['porter']: - print "Machine %s already uses port %i" % (machine, port) - sys.exit(1) + if machine in machines: + if 'porter' in machines[machine]: + if port in machines[machine]['porter']: + print "Porter: machine %s already uses port %i" % (machine, port) + sys.exit(1) + else: + machines[machine]['porter'] = {} else: machines[machine] = { 'porter': {} } |