parameters: (self)
docstring: Helper for legacy auto behaviour.
          Sorts drives into rotating and non-rotating, the latter being used for
          db or journal.
docstring_summary: Helper for legacy auto behaviour.
          Sorts drives into rotating and non-rotating, the latter being used for
          db or journal.
docstring_tokens: Helper for legacy auto behaviour . Sorts drives into rotating and non - rotating the latter being used for db or journal .
function: def _sort_rotational_disks(self):
          '''
          Helper for legacy auto behaviour.
          Sorts drives into rotating and non-rotating, the latter being used for
          db or journal.
          '''
          mlogger.warning('DEPRECATION NOTICE')
          mlogger.warning('You are using the legacy automatic disk sorting behavior')
          mlogger.warning('The Pacific release will change the default to --no-auto')
          rotating = []
          ssd = []
          for d in self.args.devices:
              rotating.append(d) if d.rotational else ssd.append(d)
          if ssd and not rotating:
              # no need for additional sorting, we'll only deploy standalone on ssds
              return
          self.args.devices = rotating
          if self.args.filestore:
              self.args.journal_devices = ssd
          else:
              self.args.db_devices = ssd
function_tokens: def _sort_rotational_disks ( self ) : mlogger . warning ( 'DEPRECATION NOTICE' ) mlogger . warning ( 'You are using the legacy automatic disk sorting behavior' ) mlogger . warning ( 'The Pacific release will change the default to --no-auto' ) rotating = [ ] ssd = [ ] for d in self . args . devices : rotating . append ( d ) if d . rotational else ssd . append ( d ) if ssd and not rotating : # no need for additional sorting, we'll only deploy standalone on ssds return self . args . devices = rotating if self . args . filestore : self . args . journal_devices = ssd else : self . args . db_devices = ssd