def gce_provisioner(zone, project, ssh_public_key, gce_credentials=None):
 key = Key.fromString(bytes(ssh_public_key))
 credentials = gce_credentials_from_config(gce_credentials)
 compute = discovery.build('compute', 'v1', credentials=credentials)
 return GCEProvisioner(instance_builder=GCEInstanceBuilder(zone=unicode(zone), project=unicode(project), compute=compute), ssh_public_key=key)

def gce_provisioner ( zone , project , ssh_public_key , gce_credentials = None ) : key = Key . fromString ( bytes ( ssh_public_key ) ) credentials = gce_credentials_from_config ( gce_credentials ) compute = discovery . build ( 'compute' , 'v1' , credentials = credentials ) return GCEProvisioner ( instance_builder = GCEInstanceBuilder ( zone = unicode ( zone ) , project = unicode ( project ) , compute = compute ) , ssh_public_key = key )
create an :class:iprovisioner for provisioning nodes on gce .