@staticmethod
def _get(rest):
    (nodes, err) = rest.nodes_info()
    _exit_if_errors(err)
    encrypted_nodes = []
    unencrpyted_nodes = []
    for n in nodes:
        if n['nodeEncryption']:
            encrypted_nodes.append(n['hostname'])
        else:
            unencrpyted_nodes.append(n['hostname'])
    if (len(encrypted_nodes) == len(nodes)):
        print('Node-to-node encryption is enabled')
    elif (len(unencrpyted_nodes) == len(nodes)):
        print('Node-to-node encryption is disabled')
    else:
        print('Cluster is in mixed mode')
        print(f'Nodes with encryption enabled: {encrypted_nodes}')
        print(f'Nodes with encryption disabled: {unencrpyted_nodes}')
@staticmethod
def _get(rest):
    (nodes, err) = rest.nodes_info()
    _exit_if_errors(err)
    encrypted_nodes = []
    unencrpyted_nodes = []
    for n in nodes:
        if n['nodeEncryption']:
            encrypted_nodes.append(n['hostname'])
        else:
            unencrpyted_nodes.append(n['hostname'])
    if (len(encrypted_nodes) == len(nodes)):
        print('Node-to-node encryption is enabled')
    elif (len(unencrpyted_nodes) == len(nodes)):
        print('Node-to-node encryption is disabled')
    else:
        print('Cluster is in mixed mode')
        print(f'Nodes with encryption enabled: {encrypted_nodes}')
        print(f'Nodes with encryption disabled: {unencrpyted_nodes}')