manual provider appears twice in boilerplate config

Bug #1275806 reported by barnex
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Andrew Wilkins

Bug Description

I noted that "juju init" creates a boilerplate config where the manual provider appears twice.

This can be tracked back to juju-core/provider/manual/provider.go, lines 19 & 20 where the manual provider is registered twice, once with the name "null" and once with the name "manual", but referring to the same provider.
Hence, BoilerplateConfig() is called twice on the same variable (manualProvider{}), and its boilerplate code appears twice. In that boilerplate code "manual" is hardcoded.

That was on revno 2290 by the way.

Tags: config docs hours

Related branches

Curtis Hovey (sinzui)
tags: added: docs hours manual-provider
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: config
removed: manual-provider
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
Andrew Wilkins (axwalk)
Changed in juju-core:
milestone: none → 1.18.0
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
milestone: 1.18.0 → 1.17.3
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.