common: fix bug in architecture ToString implementation

it used a wrong mapping, replace it with the right one
This commit is contained in:
Martin Sehnoutka 2020-02-13 15:19:34 +01:00 committed by Tom Gundersen
parent 6b957f01a0
commit 5b0611983a

View file

@ -139,7 +139,7 @@ func (arch Architecture) MarshalJSON() ([]byte, error) {
}
func (arch Architecture) ToString() (string, bool) {
return toStringHelper(getDistributionMapping(), int(arch))
return toStringHelper(getArchMapping(), int(arch))
}
type ImageType int