Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fixes to work with OOI provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
labisso committed May 26, 2010
1 parent 79e106d commit 8502cbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nimboss/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def add_node(self, node):
def get_uuid(self):
"""Unique id, created by hashing Cluster id, and the Node Driver type.
"""
return hashlib.sha1("%s:%d" % (self.id, self.driver.node_driver.type)).hexdigest() #FIXME
return hashlib.sha1("%s" % (self.id)).hexdigest() #FIXME

def get_status(self):
"""Cluster status, as return by the Context Broker.
Expand Down Expand Up @@ -87,14 +87,14 @@ def create_cluster(self, clusterdoc, context=None, **kwargs):
cluster = self.new_bare_cluster(id=context.uri)

for spec in nodes_specs:
cluster.add_node(launch_node_spec(spec))
cluster.add_node(launch_node_spec(spec, **kwargs))

return cluster

def new_bare_cluster(self, id):
return Cluster(id, driver=self)

def launch_node_spec(self, spec, driver):
def launch_node_spec(self, spec, driver, **kwargs):
"""Launches a single node group.
Returns a single Node or a list of Nodes.
Expand Down

0 comments on commit 8502cbc

Please sign in to comment.