diff options
author | Pranav <prprakas@redhat.com> | 2020-08-18 10:16:50 +0530 |
---|---|---|
committer | Pranav <prprakas@redhat.com> | 2020-08-18 10:16:50 +0530 |
commit | 891472d8b77574dbb3346b98bb0948e0f2d12a2c (patch) | |
tree | c104c2186cca6dccffc544683dfa0b0f77d30d4f /glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py | |
parent | 6694d72c786b754d76bc18854174accfb2c23efa (diff) |
[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 <prprakas@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py')
-rwxr-xr-x[-rw-r--r--] | glustolibs-gluster/glustolibs/gluster/nfs_ganesha_ops.py | 20 |
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 b7cbed233..ec4ca176b 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): |