 module.exports = updateStackTemplate = (data, callback) ->
 
   { template, templateDetails, credentials, description
-    title, stackTemplate, machines, config } = data
+    title, stackTemplate, machines, config, rawContent } = data
 
   title or= 'Default stack template'
   config ?= stackTemplate.config ? {}

  else

    remote.api.JStackTemplate.create {
      title, template, credentials
      templateDetails, config, description
    }, callback



    dataToUpdate = if machines \
      then { machines, config } else {
        title, template, credentials, rawContent
        templateDetails, config, description
      }

