@rest_initialiser(version_check=True)
def execute(self, opts):
    (result, errors) = self.rest.pools('default')
    _exit_if_errors(errors)
    for node in result['nodes']:
        if (node.get('otpNode') is None):
            raise Exception('could not access node')
        print(node['otpNode'], node['hostname'], node['status'], node['clusterMembership'])
@rest_initialiser(version_check=True)
def execute(self, opts):
    (result, errors) = self.rest.pools('default')
    _exit_if_errors(errors)
    for node in result['nodes']:
        if (node.get('otpNode') is None):
            raise Exception('could not access node')
        print(node['otpNode'], node['hostname'], node['status'], node['clusterMembership'])