juju model-config/controller-config with single key arg outputs YAML

Bug #1661506 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
John A Meinel
2.1
Fix Released
High
Andrew Wilkins

Bug Description

It is expected that "juju controller-config <key>" and "juju model-config <key>" output values in their raw format, rather than as YAML. At the moment, for example, "juju controller-config ca-cert" gives me:

|
  -----BEGIN CERTIFICATE-----
  MIIDrTCCApWgAwIBAgIVAKwx29pLb5uBbI15s2Ix8ZX6xcmWMA0GCSqGSIb3DQEB
  CwUAMG4xDTALBgNVBAoTBGp1anUxLjAsBgNVBAMMJWp1anUtZ2VuZXJhdGVkIENB
  IGZvciBtb2RlbCAianVqdS1jYSIxLTArBgNVBAUTJDI1N2IzMWQ0LWYxYzMtNGVk
  OC04Y2Y5LTg4NjliNTdiM2RlMzAeFw0xNzAxMjcwNjAyNTJaFw0yNzAyMDMwNjAy
  NTJaMG4xDTALBgNVBAoTBGp1anUxLjAsBgNVBAMMJWp1anUtZ2VuZXJhdGVkIENB
  IGZvciBtb2RlbCAianVqdS1jYSIxLTArBgNVBAUTJDI1N2IzMWQ0LWYxYzMtNGVk
  OC04Y2Y5LTg4NjliNTdiM2RlMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
  ggEBAK7exrkwH88dFujCuWrvXSZvUKtMyuJjSaS2JBHBSvhCZ+92z0IDkIzYKyqf
  7rVEVuOqTY2aovLRJfQDoruehINBzGts7GtY5OcnioGfQvLlB7HMRq45UbnErBwv
  rA0IwXmU3jbZniChRDjUuoxqjFMOm/wdCN/JmTxpF4InpYvTKeRy/FD3bMtqYPp0
  a4qr+tPVIWhEF9SzrHkuuCw3+ubhKvnlojzkmzQIEaqjT7Ci57EdFmshKMQA5tD/
  cJ+hUT8kd0a6CzbE6dzn+VK0wS5bhiI5bB+oKQnW7ubObhofs2vfKe+V5egFVYkf
  y6HM6NfARg53PMGBPoWVlkEvDz8CAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgKkMA8G
  A1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFPI29LgpKo8133KeKBXJmMROVmzPMA0G
  CSqGSIb3DQEBCwUAA4IBAQB60L9c7IXz192/z1PQPgGIg2pmFVu6JCJUuSa0rgdV
  +3JghYhjDKUvwcyeNjAmbjOWrRf05yBMtfqoce8+DG0HLFonB9kBOcrin2FqwkE7
  HeFD3CqDWHwIdkI1YevWssBd97jeNncUoUkXZ95PvbaTuKQWJuXJBGpp9ZqEIO1d
  ckro5Jze0z5f6Lt7aoh+FatOECEz7p6BhEv1VC05N9RPtONqbzpogb40spRLm9ZX
  uD31X+rjN3CbFVaW1u32nUR1MgVKyp+62Klr3lNCZqEkly+geTzT+wQZlTNtk219
  OnpQGM5sVzeiR0VXf7Y9pZMJsUteNsiCbIZ+LIby6pqh
  -----END CERTIFICATE-----

(note leading "|", which is YAML for multi-line string)

Andrew Wilkins (axwalk)
Changed in juju:
assignee: nobody → Andrew Wilkins (axwalk)
status: Triaged → In Progress
milestone: 2.1.0 → 2.1-rc1
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju:
status: In Progress → Triaged
assignee: Andrew Wilkins (axwalk) → nobody
milestone: 2.1-rc1 → 2.2.0-alpha1
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Supporting PR in juju/cmd: https://github.com/juju/cmd/pull/46

Revision history for this message
Anastasia (anastasia-macmood) wrote :

Forward-ported to develop (2.2) as part of a larger merge from 2.1: https://github.com/juju/juju/pull/6934

Changed in juju:
status: Triaged → Fix Committed
assignee: nobody → John A Meinel (jameinel)
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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