aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/launchpad/config.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-10 17:48:13 +0100
committeramine <hilalyamine@gmail.com>2019-11-19 19:16:16 +0100
commit8ffe2a9b03f5d489e12d2d4d2677bbe67a1b53d7 (patch)
tree165e7aeda2b17b992762fae34863108c345b4524 /bridge/launchpad/config.go
parent57e23c8ada0a9d921a6b68187a76eb5c8b8a407d (diff)
downloadgit-bug-8ffe2a9b03f5d489e12d2d4d2677bbe67a1b53d7.tar.gz
bridge/launchpad: add missing metadata
bridge: use a specific key for origin metadata
Diffstat (limited to 'bridge/launchpad/config.go')
-rw-r--r--bridge/launchpad/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/launchpad/config.go b/bridge/launchpad/config.go
index 6669d0fa..be81c0ac 100644
--- a/bridge/launchpad/config.go
+++ b/bridge/launchpad/config.go
@@ -62,7 +62,7 @@ func (l *Launchpad) Configure(repo repository.RepoCommon, params core.BridgePara
}
conf[keyProject] = project
- conf[core.KeyTarget] = target
+ conf[core.ConfigKeyTarget] = target
err = l.ValidateConfig(conf)
if err != nil {
@@ -77,8 +77,8 @@ func (*Launchpad) ValidateConfig(conf core.Configuration) error {
return fmt.Errorf("missing %s key", keyProject)
}
- if _, ok := conf[core.KeyTarget]; !ok {
- return fmt.Errorf("missing %s key", core.KeyTarget)
+ if _, ok := conf[core.ConfigKeyTarget]; !ok {
+ return fmt.Errorf("missing %s key", core.ConfigKeyTarget)
}
return nil