definition: Use mapped architecture in name/description
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
b4d8c5bbd8
commit
b01f0a0416
@ -162,11 +162,11 @@ func (d *Definition) SetDefaults() {
|
||||
|
||||
// Set default name and description templates
|
||||
if d.Image.Name == "" {
|
||||
d.Image.Name = "{{ image.distribution }}-{{ image.release }}-{{ image.architecture }}-{{ image.variant }}-{{ image.serial }}"
|
||||
d.Image.Name = "{{ image.distribution }}-{{ image.release }}-{{ image.mapped_architecture }}-{{ image.variant }}-{{ image.serial }}"
|
||||
}
|
||||
|
||||
if d.Image.Description == "" {
|
||||
d.Image.Description = "{{ image.distribution|capfirst }} {{ image.release }} {{ image.architecture }}{% if image.variant != \"default\" %} ({{ image.variant }}){% endif %} ({{ image.serial }})"
|
||||
d.Image.Description = "{{ image.distribution|capfirst }} {{ image.release }} {{ image.mapped_architecture }}{% if image.variant != \"default\" %} ({{ image.variant }}){% endif %} ({{ image.serial }})"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user