diff --git a/dim_output_bind b/dim_output_bind index b43ae8d..75bb2e9 100644 --- a/dim_output_bind +++ b/dim_output_bind @@ -55,14 +55,14 @@ if __name__ == "__main__": sys.exit(-1) if update['action'] == 'create_zone' and config.has_option('command', 'add_zone'): command = config.get('command', 'add_zone') % (update['zone_name']) - subprocess.call(command) + subprocess.call(command.split(' ')) elif update['action'] != 'create_zone' and config.has_option('command', 'reload_zone'): command = config.get('command', 'reload_zone') % (update['zone_name']) - subprocess.call(command) + subprocess.call(command.split(' ')) elif update['action'] == 'delete_zone': os.remove(filepath) if config.has_option('command', 'del_zone'): command = config.get('command', 'del_zone') % (update['zone_name']) - subprocess.call(command) + subprocess.call(command.split(' ')) c.output_update_delete([update['id']])