I don't think the YAML format for status should be the serialized model description as it holds more info, and not all relevant for status.
dump-model was originally used to test export code. dump-db was used to get access to the contents of the db without going through mongo shell. Both very dev focused, and both only usable by admins. Tim On 29/08/17 13:11, Andrew Wilkins wrote: > On Mon, Aug 28, 2017 at 5:17 PM Tim Penhey <tim.pen...@canonical.com > <mailto:tim.pen...@canonical.com>> wrote: > > FYI, the developer commands were originally designed like the controller > commands. > > You don't say "juju destroy-model -m foo". > > > I think that holds for "dump-model", but I'm not so sure about > "dump-db". It feels natural enough to me to say "juju dump-db -m foo", > or "juju dump-db". > > I'm wondering about the future of "dump-model". Since you've been > looking at using the model description to feed "juju status", I wonder > if it wouldn't make sense to update the "juju status" YAML format to be > exactly the model description. Then "dump-model" becomes redundant. We'd > have to make it an option, though, because backwards compatibility. > > Cheers, > Andrew > > > Tim > > On 28/08/17 19:48, Anastasia Macmood wrote: > > Hi > > > > Just a quick note for developers that use developer commands. > > > > 'juju dump-model' and 'juju dump-db' are changing on develop tip [1], > > from 2.3.x. > > These commands are now fully-fledged model commands as they were > > originally designed. > > This means that they will now accept model name as an option > instead of > > as a positional argument. > > > > i.e. > > 'juju dump-model -m modelName' NOT 'juju dump-model modelName' > > 'juju dump-db -m modelName' NOT 'juju dump-db modelName' > > > > Happy juju-ing! > > > > Sincerely Yours, > > Anastasia > > > > [1] > > https://github.com/juju/juju/pull/7797 > > > > > > -- > Juju-dev mailing list > Juju-dev@lists.ubuntu.com <mailto:Juju-dev@lists.ubuntu.com> > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju-dev > -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev