'Returns True if all nodes are spot instances'

def is_spot_cluster(self):

    nodes = self.nodes
    if (not nodes):
        return False
    for node in nodes:
        if (not node.is_spot()):
            return False
    return True
