@api_wrapper
def delete_client(module, export):
 changed = False
 client = module.params['client']
 client_list = export.get_permissions()
 for (index, item) in enumerate(client_list):
  if (item.client == client):
   changed = True
   del client_list[index]
 if changed:
  for (index, item) in enumerate(client_list):
   client_list[index] = unmunchify(item)
  if (not module.check_mode):
   export.update_permissions(client_list)
 module.exit_json(changed=changed)

@ api_wrapper def delete_client ( module , export ) : changed = False client = module . params [ 'client' ] client_list = export . get_permissions ( ) for ( index , item ) in enumerate ( client_list ) : if ( item . client == client ) : changed = True del client_list [ index ] if changed : for ( index , item ) in enumerate ( client_list ) : client_list [ index ] = unmunchify ( item ) if ( not module . check_mode ) : export . update_permissions ( client_list ) module . exit_json ( changed = changed )
update export client list .