code: def reject_all(self):
          '''
          Reject all keys in pre
          '''
          keys = self.list_keys()
          for key in keys[self.PEND]:
              try:
                  shutil.move(
                          os.path.join(
                              self.opts['pki_dir'],
                              self.PEND,
                              key),
                          os.path.join(
                              self.opts['pki_dir'],
                              self.REJ,
                              key)
                          )
                  eload = {'result': True,
                           'act': 'reject',
                           'id': key}
                  self.event.fire_event(eload,
                                        salt.utils.event.tagify(prefix='key'))
              except (IOError, OSError):
                  pass
          self.check_minion_cache()
          if self.opts.get('rotate_aes_key'):
              salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
          return self.list_keys(f reject_all(self):
          '''
          Reject all keys in pre
          '''
          keys = self.list_keys()
          for key in keys[self.PEND]:
              try:
                  shutil.move(
                          os.path.join(
                              self.opts['pki_dir'],
                              self.PEND,
                              key),
                          os.path.join(
                              self.opts['pki_dir'],
                              self.REJ,
                              key)
                          )
                  eload = {'result': True,
                           'act': 'reject',
                           'id': key}
                  self.event.fire_event(eload,
                                        salt.utils.event.tagify(prefix='key'))
              except (IOError, OSError):
                  pass
          self.check_minion_cache()
          if self.opts.get('rotate_aes_key'):
              salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
          return self.list_keys()
docs: Reject all keys in pre