code: def _get_envs(self):
          '''
          Pull the file server environments out of the master options
          '''
          envs = ['base']
          if 'file_roots' in self.opts:
              envs.extend([x for x in list(self.opts['file_roots'])
                           if x not in envs])
          env_order = self.opts.get('env_order', [])
          # Remove duplicates while preserving the order
          members = set()
          env_order = [env for env in env_order if not (env in members or members.add(env))]
          client_envs = self.client.envs()
          if env_order and client_envs:
              return [env for env in env_order if env in client_envs]
  
          elif env_order:
              return env_order
          else:
              envs.extend([env for env in client_envs if env not in envs])
              return envf _get_envs(self):
          '''
          Pull the file server environments out of the master options
          '''
          envs = ['base']
          if 'file_roots' in self.opts:
              envs.extend([x for x in list(self.opts['file_roots'])
                           if x not in envs])
          env_order = self.opts.get('env_order', [])
          # Remove duplicates while preserving the order
          members = set()
          env_order = [env for env in env_order if not (env in members or members.add(env))]
          client_envs = self.client.envs()
          if env_order and client_envs:
              return [env for env in env_order if env in client_envs]
  
          elif env_order:
              return env_order
          else:
              envs.extend([env for env in client_envs if env not in envs])
              return envs
docs: Pull the file server environments out of the master options