From 891472d8b77574dbb3346b98bb0948e0f2d12a2c Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 18 Aug 2020 10:16:50 +0530 Subject: [LibFix] Fix wrong indentation in nfs_ganesha_ops Cluster authentication between the nodes are done after setting a password for the user 'hacluster' on all the nodes Change-Id: Ic8b8838ef9490d2776172467c177d61cb615720f Signed-off-by: Pranav --- .../glustolibs/gluster/nfs_ganesha_ops.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) mode change 100644 => 100755 glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py (limited to 'glustolibs-gluster/glustolibs/gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py b/glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py old mode 100644 new mode 100755 index b7cbed233..ec4ca176b --- 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): -- cgit