summaryrefslogtreecommitdiff
path: root/azurelinuxagent/pa/rdma/centos.py
diff options
context:
space:
mode:
Diffstat (limited to 'azurelinuxagent/pa/rdma/centos.py')
-rw-r--r--azurelinuxagent/pa/rdma/centos.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/azurelinuxagent/pa/rdma/centos.py b/azurelinuxagent/pa/rdma/centos.py
index 8ad09c5..214f9ea 100644
--- a/azurelinuxagent/pa/rdma/centos.py
+++ b/azurelinuxagent/pa/rdma/centos.py
@@ -173,8 +173,7 @@ class CentOSRDMAHandler(RDMAHandler):
'user mode', self.rdma_user_mode_package_name, umod_pkg_path)
logger.info("RDMA: driver packages installed")
- self.load_driver_module()
- if not self.is_driver_loaded():
+ if not self.load_driver_module() or not self.is_driver_loaded():
logger.info("RDMA: driver module is not loaded; reboot required")
self.reboot_system()
else: