def get_file_client(opts, pillar=False):
 client = opts.get('file_client', 'remote')
 if (pillar and (client == 'local')):
  client = 'pillar'
 return {'remote': RemoteClient, 'local': FSClient, 'pillar': LocalClient}.get(client, RemoteClient)(opts)

def get_file_client ( opts , pillar = False ) : client = opts . get ( 'file_client' , 'remote' ) if ( pillar and ( client == 'local' ) ) : client = 'pillar' return { 'remote' : RemoteClient , 'local' : FSClient , 'pillar' : LocalClient } . get ( client , RemoteClient ) ( opts )
read in the file_client option and return the correct type of file server .