File 0001-Rename-nfs-kernel-server-to-nfs-server.patch of Package openstack-manila

From a9050b3f6767a7a2ebc962f83990cf96a861b33a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fl=C3=A1vio=20Ramalho?= <framalho@suse.com>
Date: Thu, 30 Jul 2020 15:58:40 +0200
Subject: [PATCH] Rename nfs-kernel-server to nfs-server
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Flávio Ramalho <framalho@suse.com>
---
 manila/share/drivers/helpers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: manila-7.4.2.dev53/manila/share/drivers/helpers.py
===================================================================
--- manila-7.4.2.dev53.orig/manila/share/drivers/helpers.py
+++ manila-7.4.2.dev53/manila/share/drivers/helpers.py
@@ -355,11 +355,11 @@ class NFSHelper(NASHelperBase):
         self._ssh_exec(server, ['sudo', 'exportfs', '-a'])
         out, _ = self._ssh_exec(
             server,
-            ['sudo', 'systemctl', 'is-active', 'nfs-kernel-server'],
+            ['sudo', 'systemctl', 'is-active', 'nfs-server'],
             check_exit_code=False)
         if "inactive" in out:
             self._ssh_exec(
-                server, ['sudo', 'systemctl', 'restart', 'nfs-kernel-server'])
+                server, ['sudo', 'systemctl', 'restart', 'nfs-server'])
 
     def _get_export_location_template(self, export_location_or_path):
         path = export_location_or_path.split(':')[-1]
openSUSE Build Service is sponsored by