 
         ->
           # create a stack from the given template
-          _createStackFromTemplate stackData, options, (data_) ->
-            callback { group, stack : data_.stack, stackTemplate, stackTemplateData }
+          ComputeProvider.generateStackFromTemplate stackData, options, (err, { stack }) ->
+            expect(err?.message).to.not.exist
+            callback { group, stack, stackTemplate, stackTemplateData }
 
       ]
 

      computeProviderOptions = {
        client, stack, provider, label, generatedFrom
        users : []
        provisioners : ['test_provisioner']
      }

      ComputeProvider.create client, computeProviderOptions, (err, data_) ->

  withConvertedUser }    = require '../../index'
{ createProvisioner }    = require './provisionerhelper'
{ createStackTemplate }  = require './stacktemplatehelper'
{ createCredential }     = require './credentialhelper'

JGroup          = require '../../../../social/lib/social/models/group'
JProvisioner    = require '../../../../social/lib/social/models/computeproviders/provisioner'
