diff --git a/virttest/nfs.py b/virttest/nfs.py index dd9e9f769a..78c8674cdf 100644 --- a/virttest/nfs.py +++ b/virttest/nfs.py @@ -196,7 +196,7 @@ def __init__(self, params): params.get("setup_remote_nfs") == "yes" or params.get("setup_local_nfs") == "yes" ): - if "Ubuntu" in distro_details or "rhel" in distro_details: + if distro_details.upper() in ("UBUNTU", "RHEL", "FEDORA", ): self.nfs_service = service.Service("nfs-server", session=self.session) else: self.nfs_service = service.Service("nfs", session=self.session)