cosmetic commit
This commit is contained in:
parent
72e4dc4cb5
commit
4487152d1e
|
@ -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)
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue