Revision d5ba5588 snf-app/synnefo/ui/static/snf/js/models.js

b/snf-app/synnefo/ui/static/snf/js/models.js
1213 1213
        
1214 1214
        // get metadata OS value
1215 1215
        get_os: function() {
1216
            return this.get_meta().OS || (this.get_image(function(){}) ? this.get_image(function(){}).get_os() || "okeanos" : "okeanos");
1216
            return this.get_meta().OS || (this.get_image(function(){}) ? 
1217
                                          this.get_image(function(){}).get_os() || "okeanos" : "okeanos");
1217 1218
        },
1218 1219

  
1219 1220
        // get public ip addresses
......
1829 1830

  
1830 1831
        create: function (name, image, flavor, meta, extra, callback) {
1831 1832
            if (this.copy_image_meta) {
1832
                meta['OS'] = image.get("OS");
1833
                if (image.get("OS")) {
1834
                    meta['OS'] = image.get("OS");
1835
                }
1833 1836
           }
1834 1837
            
1835 1838
            opts = {name: name, imageRef: image.id, flavorRef: flavor.id, metadata:meta}

Also available in: Unified diff