summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py')
-rwxr-xr-x[-rw-r--r--]glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py b/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py
index b7cbed2..ec4ca17 100644..100755
--- a/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py
@@ -970,16 +970,16 @@ def cluster_auth_setup(servers):
g.log.error("unable to set password for hacluster on %s", node)
return False
- # Perform cluster authentication between the nodes
- auth_type = 'cluster' if is_rhel7(servers) else 'host'
- for node in servers:
- ret, _, _ = g.run(node, "pcs %s auth %s -u hacluster -p hacluster"
- % (auth_type, ' '.join(servers)))
- if ret:
- g.log.error("pcs %s auth command failed on %s",
- auth_type, node)
- return False
- return True
+ # Perform cluster authentication between the nodes
+ auth_type = 'cluster' if is_rhel7(servers) else 'host'
+ for node in servers:
+ ret, _, _ = g.run(node, "pcs %s auth %s -u hacluster -p hacluster"
+ % (auth_type, ' '.join(servers)))
+ if ret:
+ g.log.error("pcs %s auth command failed on %s",
+ auth_type, node)
+ return False
+ return True
def configure_ports_on_servers(servers):