Revision d27cf869
b/snf-cyclades-app/synnefo/ui/static/snf/js/glance_models.js | ||
---|---|---|
124 | 124 |
|
125 | 125 |
img = models.GlanceImages.__super__.parse_meta.call(this, img); |
126 | 126 |
if (img.checksum && img.checksum.indexOf('arch') == 0) { |
127 |
img.OS = 'snapshot'; |
|
128 |
img.metadata.OS = 'snapshot'; |
|
127 |
if (!img.OS) { |
|
128 |
img.OS = 'snapshot'; |
|
129 |
} |
|
130 |
if (!img.metadata || !img.metadata.OS) { |
|
131 |
img.metadata.OS = 'snapshot'; |
|
132 |
} |
|
129 | 133 |
} |
130 | 134 |
return img; |
131 | 135 |
}, |
Also available in: Unified diff