Fixing list kubernetes hosts method in REST API