cosmetic commit

This commit is contained in:
Adrien Delorme 2021-02-15 14:05:17 +01:00
parent 72e4dc4cb5
commit 4487152d1e
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ func (p *Plugin) ForDisplay() string {
if p.Hostname != DefaultHashicorpPluginHost {
parts = append(parts, p.Hostname)
}
if p.Namespace != DefaultHashicorpPluginNamespace {
if p.Namespace != DefaultHashicorpPluginNamespace && len(parts) == 0 {
parts = append(parts, p.Namespace)
}
parts = append(parts, p.Type)

View File

@ -650,7 +650,7 @@ func TestParser_no_init(t *testing.T) {
[]packersdk.Build{},
false,
},
{"invalid_short_source_2.pkr.hcl",
{"invalid_inexplicit_source_2.pkr.hcl",
defaultParser,
parseTestArgs{"testdata/init/invalid_inexplicit_source_2.pkr.hcl", nil, nil},
&PackerConfig{