original_docstring: 
          Restore from the directory that we untarred into
          
docstring: Restore from the directory that we untarred into
docstring_tokens: Restore from the directory that we untarred into
code: def _post_restore(self, restore_command, rollforward_command=None):
          """
          Restore from the directory that we untarred into
          """
          out = ""
          try:
              out, err = utils.execute_with_timeout(system.GET_DB_NAMES,
                                                    shell=True)
          except exception.ProcessExecutionError:
              LOG.exception("Couldn't find any databases.")
  
          dbNames = out.split()
          for dbName in dbNames:
              service.run_command(restore_command % {'dbname': dbName})
              if rollforward_command:
                  service.run_command(system.ROLL_FORWARD_DB % {'dbname':
                                                                dbName})
  
          LOG.info("Cleaning out restore location: %s.",
                   system.DB2_BACKUP_DIR)
          service.remove_db2_dir(system.DB2_BACKUP_DIR)
code_tokens: def _post_restore ( self , restore_command , rollforward_command = None ) : out = "" try : out , err = utils . execute_with_timeout ( system . GET_DB_NAMES , shell = True ) except exception . ProcessExecutionError : LOG . exception ( "Couldn't find any databases." ) dbNames = out . split ( ) for dbName in dbNames : service . run_command ( restore_command % { 'dbname' : dbName } ) if rollforward_command : service . run_command ( system . ROLL_FORWARD_DB % { 'dbname' : dbName } ) LOG . info ( "Cleaning out restore location: %s." , system . DB2_BACKUP_DIR ) service . remove_db2_dir ( system . DB2_BACKUP_DIR )
short_docstring: Restore from the directory that we untarred into
short_docstring_tokens: Restore from the directory that we untarred into
comment: """
          Restore from the directory that we untarred into
          """