Frikin dicts and sizes.. fixed

This commit is contained in:
Anton Hvornum 2019-04-11 22:50:13 +02:00
parent 90b6c5c8f7
commit 5c3089e7f9
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class sys_command():
lower = output.lower()
if 'triggers' in self.opts:
for trigger in self.opts['triggers']:
for trigger in list(self.opts['triggers']):
if trigger.lower() in lower:
print('[N] Writing to subsystem: {}'.format(self.opts['triggers'][trigger]))
os.write(child_fd, self.opts['triggers'][trigger])