original_docstring: Sync changes of exports with permanent NFS config file.
  
          This is required to ensure, that after share server reboot, exports
          still exist.
          
docstring: Sync changes of exports with permanent NFS config file.
  This is required to ensure, that after share server reboot, exports
  still exist.
docstring_tokens: Sync changes of exports with permanent NFS config file . This is required to ensure that after share server reboot exports still exist .
code: def _sync_nfs_temp_and_perm_files(self, server):
          """Sync changes of exports with permanent NFS config file.
  
          This is required to ensure, that after share server reboot, exports
          still exist.
          """
          sync_cmd = [
              'sudo', 'cp', const.NFS_EXPORTS_FILE_TEMP, const.NFS_EXPORTS_FILE
          ]
          self._ssh_exec(server, sync_cmd)
          self._ssh_exec(server, ['sudo', 'exportfs', '-a'])
          out, _ = self._ssh_exec(
              server, ['sudo', 'service', 'nfs-kernel-server', 'status'],
              check_exit_code=False)
          if "not" in out:
              self._ssh_exec(
                  server, ['sudo', 'service', 'nfs-kernel-server', 'restart'])
code_tokens: def _sync_nfs_temp_and_perm_files ( self , server ) : sync_cmd = [ 'sudo' , 'cp' , const . NFS_EXPORTS_FILE_TEMP , const . NFS_EXPORTS_FILE ] self . _ssh_exec ( server , sync_cmd ) self . _ssh_exec ( server , [ 'sudo' , 'exportfs' , '-a' ] ) out , _ = self . _ssh_exec ( server , [ 'sudo' , 'service' , 'nfs-kernel-server' , 'status' ] , check_exit_code = False ) if "not" in out : self . _ssh_exec ( server , [ 'sudo' , 'service' , 'nfs-kernel-server' , 'restart' ] )
short_docstring: Sync changes of exports with permanent NFS config file.
short_docstring_tokens: Sync changes of exports with permanent NFS config file .
comment: """Sync changes of exports with permanent NFS config file.
  
          This is required to ensure, that after share server reboot, exports
          still exist.
          """